Re: [Dynapi-Help] passing a variable - thanks!

2002-01-28 Thread Arijit Das
Thanks everybody for the quick replies! I have it working now... Arijit --- Protein Media, Inc. tel: 202.462.4700[EMAIL PROTECTED] fax: 202.318.1176http://www.proteinmedia.com ___ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sour

RE: [Dynapi-Help] passing a variable

2002-01-28 Thread Tuomas Huhtanen
When the onclick function is executed, the scope is "window", but you have declared myVar inside your onload function. So you can do it either: myLayer.setHTML('Click'); or then by declaring the variable to be property of the window object. I.e inside the onload function: myVar = "stuff"; The

[Dynapi-Help] passing a variable

2002-01-28 Thread Arijit Das
I can't get something that seems like it should be simple to work: If I declare a variable in the onLoad function var myVar = "stuff" and later try to use that variable within setHTML (still within the onLoad function): myLayer.setHTML('Click') the variable is not passed. Any help on how to f