How to send data from javascript to Revlet?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

How to send data from javascript to Revlet?

Post by ale870 » Mon Jul 05, 2010 5:17 pm

Hello,

I already red some info about passing data from javascript to revlet (they use document.write()) , but I cannot find any info how to make it dynamically. For example: I make a web page with two buttons (or two hyperlinks), and I wish to send a string to revlet plugin based on user selection (which button the user pressed).

Is it possible? How?
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: How to send data from javascript to Revlet?

Post by Mark » Tue Jul 06, 2010 8:23 am

Hi ale870,

You can use javascript in a browser to set a cookie and javascript in the revlet to read the cookie.

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Re: How to send data from javascript to Revlet?

Post by ale870 » Tue Jul 06, 2010 3:15 pm

Not so bad, but the problem I cannot arise an event to "communicate" this new value set :-(
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki

Post Reply