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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Harini
Sent: Wednesday, August 29, 2007 7:21 AM
To: [email protected]
Subject: [Laszlo-user] how to access
Hi,
How to access the variable declared in script outside script in canvas
Thanks in advance
Harini.