Pass a variable/string to an HTML5 app?

Bringing your stacks to the web

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
keithglong
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 347
Joined: Sun Jul 03, 2011 2:04 am
Location: Gulf Breeze, Florida

Pass a variable/string to an HTML5 app?

Post by keithglong » Mon Mar 21, 2016 1:51 pm

Hi All,

I am still playing with HTML5 in LiveCode and can see the potential. Another question...

I am able to put text into a variable, within the .js file that is included with the distribution, by putting the following code at the top of the file:

Code: Select all

var myVar = "Hello world!";
alert (myVar);
When I run the app, the "Hello world!" is displayed before the app loads, but I was wondering if anyone knows a way to pass the data in that variable to the actual app so that the string can be put into a LiveCode variable?

Thanks, and this is fun!

- Boo

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1764
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Pass a variable/string to an HTML5 app?

Post by [-hh] » Sun Apr 17, 2016 1:44 pm

Hi.
What I know is: There is (currently) NO way for that.
The possibility to add js-Handlers (like in LC web browser) would be a great feature.
You could make a (HTML5-)feature request:
LiveCode Quality Control Center (QCC)
shiftLock happens

Post Reply

Return to “HTML5”