Release: 8.0 DP4... also, HTML5
Jerry Jensen
jhj at jhj.com
Tue Sep 1 22:02:14 EDT 2015
Thanks, Bob. Very informative to this total JS noob.
.Jerry
On Sep 1, 2015, at 6:51 PM, Bob Warren <bobwarren at howsoft.com> wrote:
>
> Please allow me to elucidate a little on the question of file I-O in the local file system using Javascript, in the hope that it will be useful to some of you, or that it might in some way influence what is/is not implemented in LC8:
>
> 1. A Javascript (or JQuery script) is able to upload data from a file directly from the local file system, without operator intervention, AS LONG AS IT IS AN XML file.
>
> 2. There exists an "xmlWriter.js", but I haven't managed to get it to work yet!
>
> 3. If operator intervention is allowed, then dialogues (like LC "answer file" dialogues) for uploading/downloading files from anywhere from/to the local file system can be achieved in 2 ways that I know of:
>
> (a) Using "Uploadify" and "Downloadify". (Require Flash) A bit of a pain in the elbow to embed in your script though.
> (b) Using HTML5. (Flash not required). Easier to embed, but not quite so direct in their usage of LC-style dialogues.
>
> --------------------
>
> If anyone wants a demo of the XML upload, just drop me a line and I will send it to you.
> If anyone knows how to get xmlWriter to work, I'd be grateful for a demo script if you have one.
> For examples of Uploadify and Downloadify, see the 4 browser apps at:
>
> http://www.howsoft.com/browserapps/
>
> For an example of local file I-O using HTML5, see my unpublished app at:
>
> http://www.howsoft.com/browserapps/quickinfo/
>
> For information on embedding, just look at the script in the "developers" menu of your browser. (Sorry about the "spaghetti coding: my GGgrandmother was an Italian!)
>
> I would like to emphasize that all the above concerns file I-O on the local file system, NOT on a server, regardless of whether the script itself is on the Internet or on the local machine.
>
> For quite a long time, I have been trying to do everything in Javascript that I am able to do in LC on the desktop.
> It ain't easy!
>
> Regards,
>
> Bob Warren
More information about the use-livecode
mailing list