[Laszlo-user] how to access
Peter Gien
peter.gien at integera.com
Thu Aug 30 15:42:18 PDT 2007
Harini,
If you place a variable in a script block at the bottom of your Laszlo file
containing the canvas, then you can declare a variable there and it will
indeed be a global variable available to all other classes and files that
are part of the same Laszlo application. If you have two Laszlo
applications, then it is not easy to set up the concept of a global variable
unless you place it into an intermediary location such as a DOM element on
the page that hosts both Laszlo applications.
So at the bottom of your main file, go ahead and enter:
<canvas>
.
.
.
<script>
myGlobalVar = "abc123";
</script>
</canvas>
PeterG.
_____
From: laszlo-user-bounces at openlaszlo.org
[mailto:laszlo-user-bounces at openlaszlo.org] On Behalf Of Harini
Sent: Wednesday, August 29, 2007 7:21 AM
To: laszlo-user at openlaszlo.org
Subject: [Laszlo-user] how to access
Hi,
How to access the variable declared in script outside script in canvas
Thanks in advance
Harini.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070830/76bf2741/attachment.html
More information about the Laszlo-user
mailing list