[Xerte] Writing/reading text
John Lannon
j.lannon at aimforhumanrights.nl
Tue Aug 11 00:03:06 BST 2009
Thanks Paddy and Paul for replies.
Having looked again at the actionscript possibilities it seems I should also be able to use the loadVars class (send and load methods) to read/write text to a URL. It should work with a URL that is a local or server file?? ... have tried it briefly but no luck so far.
John
________________________________
From: xerte-bounces at lists.nottingham.ac.uk on behalf of Patrick Lockley
Sent: Fri 07/08/2009 11:22
To: Xerte discussion list
Subject: RE: [Xerte] Writing/reading text
Hi John,
Xerte doesn't directly have the ability to save a file, as it's flash based and as such relies on flash's file handling functions (i.e open only). However, you could write a server side script to handle that for you.
So that would work for you on a server, but it would not work for using a CD.
There is an send and load event which can obtain XML / any other data.
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of John Lannon
Sent: 07 August 2009 10:08
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] Writing/reading text
Hello all,
I'm new to Xerte and to the list but I've set up the standalone exe version, looked through the examples, and created/published my own basic template-based learning object.
My question is as follows: I want to create an interactive online application where the user is presented with questions (mostly text entry panels for large amounts of text); the user can save their input at any time, and can reload them into the appropriate panels when they re-start. I want to run the published project from a server or CD and save the entered text locally on the user's PC.
I presume I can write/read from an XML file, but would welcome any advice or examples.
Thanks in advance,
John Lannon
Systems Developer [Human Rights Impact Resource Centre] Aim for human rights
Email: j.lannon[at]aimforhumanrights[dot]org
More information about the Xerte
mailing list