tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kent Tong <k...@cpttm.org.mo>
Subject Re: Global Variables....in JavaScript!
Date Wed, 02 Mar 2005 08:49:49 GMT
bobby rullo <br <at> alexanderinteractive.com> writes:

> One thing that I can't figure how to get around is how to make a global
> javascript variable. Normally you just do it outside of the context of a
> function...but there is nowhere to do this in Tapestry that I can see - 
> even the
> initialization stuff is in a windows onload function....

Use a Script component with a script file like:

<script>
  <body>
<![CDATA[ 
var myGlobalVar;
]]>
  </body>
</script>



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Mime
View raw message