View Full Version : call JavaScript from laszlo
epopov
11-10-2003, 08:32 AM
Hi,
I have HTML code that contains JavaScript function.
How can I call this JavaScript function from laszlo application?
antun
11-10-2003, 10:40 AM
There are no API hooks to browser JavaScript at the moment, however you can call some functions using the loadURL() method of the LzBrowser service. See here:
http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&threadid=118#post372
Be aware that it's the browser that decides what you can and cannot call using this method. You can define your own functions and call them (I tried in Flash Player 5 and Mozilla Firebird, and Flash 6 on IE. You should run a few tests of your own if you're planning to deploy an app with this.
-Antun
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.