My attempt to read a text file on the web

Bringing your stacks to the web

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Kangaroo SW
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 35
Joined: Sat Jan 15, 2011 10:57 am

My attempt to read a text file on the web

Post by Kangaroo SW » Wed May 04, 2022 12:29 pm

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
Attachments
ReadTextFile.zip
(5.12 KiB) Downloaded 202 times

bobcole
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 147
Joined: Tue Feb 23, 2010 10:53 pm

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

Post by bobcole » Thu May 05, 2022 4:27 am

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

Kangaroo SW
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 35
Joined: Sat Jan 15, 2011 10:57 am

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

Post by Kangaroo SW » Thu May 05, 2022 3:41 pm

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

Post Reply

Return to “HTML5”