Re: passing ASP variable to Javascript variable
by "David Clapper" <dclapper(at)clioassociates.com>
|
Date: |
Fri, 7 Dec 2001 16:51:54 -0500 |
To: |
"Emerald Spirit" <emerald_spirit(at)yahoo.com>, <hwg-techniques(at)hwg.org> |
References: |
yahoo |
|
todo: View
Thread,
Original
|
|
Don't pass it - build the JavaScript on the fly. Assuming you want to use
it in the init function: <body onload='init(<%= y %>);'>
David Clapper
Vice-President & Chief Architect
Clio Associates
70 Pavilion St.
Rochester, NY 14620 USA
Voice: +1.585.442.5407
Fax: +1.585.442.5993
Cell: +1.585.259.3699
e-mail: dclapper(at)clioassociates.com
PGP public key ID: 0xC67E9E98
----- Original Message -----
From: Emerald Spirit <emerald_spirit(at)yahoo.com>
To: <hwg-techniques(at)hwg.org>
Sent: Friday, December 07, 2001 4:08 PM
Subject: passing ASP variable to Javascript variable
> I've got this problem that is driving me nuts.
>
> I have an ASP page. I found a javascript function
> that does what I want - only there is a variable (y)
> within the function that I need to set dynamically.
> The value for that variable is in my ASP code.
>
> The javascript is called on the body onload <.body
> onload='init();'>
>
> How to I pass my ASP variable x to my javascript
> variable y???
>
> TIA
>
> Rebecca
>
>
> =====
> Do while Project<>Completed
> if impossible = true then
> rethink(approach)
> set impossible = false
> end if
> loop
>
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA