Hi All
I have a eLearning platform running fairly well directly online, based on
UploadPlugin and the use of some php scripts to store online data in simple
txt files....
Now I need to consider students who do not have continual online access
(still quite a reality in Brasil) and who need to study using my platform
in offline (USB) mode. My thinking is that when a student is connected, to
download the server-side txt files to the USB (probably svae them in
localStorage as well)........ to store offline additions in another
localStorage and to re-integrate this new data when the student re-connects.
My problem is downloading the server-side txt files to a local TW - seems I
am hitting cross-domain problems.
Online I use a code like -
<script>
var out="";
var xmlHttp = null;
xmlHttp = new XMLHttpRequest();
var discFile="/someTextFile.txt";
xmlHttp.open( "GET",discFile, false);
xmlHttp.send( null );
var returnText =xmlHttp.responseText;
var lines=returnText.split("#\n");........
to get the data from the txt file....but using this from the offline TW
does not work.....the data is not passed to the offline TW !!!
How to get around this? How to get the txt data from the server to the
offline TW???
Thanks in Advance
Skye
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/tiddlywiki/-/vzPl5xTTTHwJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.