Page 1 of 1

Pass a variable/string to an HTML5 app?

Posted: Mon Mar 21, 2016 1:51 pm
by keithglong
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

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

Posted: Sun Apr 17, 2016 1:44 pm
by [-hh]
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)