Re: passing ASP variable to Javascript variable

by Emerald Spirit <emerald_spirit(at)yahoo.com>

 Date:  Fri, 7 Dec 2001 16:26:14 -0800 (PST)
 To:  David Clapper <dclapper(at)clioassociates.com>
 Cc:  hwg-techniques(at)hwg.org
 In-Reply-To:  clapper02
  todo: View Thread, Original
I know I tried this and couldn't get it to work - but
I tried it again when you emailed me this - and it
works!!! 

Thanks for your suggestion!

Rebecca

--- David Clapper <dclapper(at)clioassociates.com> wrote:
> 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
> 


=====
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