wlam
12-18-2003, 10:39 AM
Hi,
I'm trying to run a javascript in lazslo. The javascript I'm trying to run looks something like "window.external.blahobject.blah()".
At first I tried to put this in a script tag, but it didn't work. I later on read that browser related functionality is not supported by laszlo.
The next thing I tried was creating a dataset that makes a request to a jsp file that has the above function. e.g.
jsp file:
<html>
<body onload="window.external.blahobject.blah()"/>
</html>
lzx file:
<method>
something.setUrl(SPECIAL_URL);
something.doRequest();
</method>
I can see that the url is being requested, but the function is still not called.
Is there any ways that you would recommend so that I can run this javascript within lazslo?
I'm trying to run a javascript in lazslo. The javascript I'm trying to run looks something like "window.external.blahobject.blah()".
At first I tried to put this in a script tag, but it didn't work. I later on read that browser related functionality is not supported by laszlo.
The next thing I tried was creating a dataset that makes a request to a jsp file that has the above function. e.g.
jsp file:
<html>
<body onload="window.external.blahobject.blah()"/>
</html>
lzx file:
<method>
something.setUrl(SPECIAL_URL);
something.doRequest();
</method>
I can see that the url is being requested, but the function is still not called.
Is there any ways that you would recommend so that I can run this javascript within lazslo?