Page 1 of 1

My attempt to read a text file on the web

Posted: Wed May 04, 2022 12:29 pm
by Kangaroo SW
Hello all

I have been doing a lot of experiments with the new WASM Web Engine recently. I found that reading a text file is not natively supported.

Here my attempt, to read a text file and put it into a field.

I hope this is useful for someone, or shows at least the some new web capabilities for those interested. :D


Cheers
Kangaroo

Re: My attempt to read a text file on the web

Posted: Thu May 05, 2022 4:27 am
by bobcole
Kangaroo:
I have played with all three of your contributions so far.
The ability to pass text files to and from LiveCode and Javascript is an important capability.
This ReadTextFile example is a great addition as is your SaveTextFile example.
I have examined and am impressed with your scripting in your WebScrollField example.
It is nice to see how you make the connections between LiveCode and JavaScript.
I'm not sure I fully understand what you have done but it all works!
Many thanks for sharing your efforts with the LC community on this forum.
Bob C

Re: My attempt to read a text file on the web

Posted: Thu May 05, 2022 3:41 pm
by Kangaroo SW
Thank you for the compliments !

I like to share what I create - always hoping someone can improve it or just us it as it is.
I learned a lot from many people here :wink: , this is just my way of giving it back to the community.


Cheers
Kangaroo