Dopey javascript question
by Lara Fabans <lara(at)flashcom.net>
|
Date: |
Wed, 17 May 2000 12:19:49 -0700 |
To: |
hwg-languages(at)hwg.org |
|
todo: View
Thread,
Original
|
|
Hi,
I'm working on a site that's primarily php3. I need to put in javascript for
multiple buttons. There's a $sitevar that gets passed from page to page.
For one call to javascript, I want to pass a form value and this $sitevar.
so I have something like myFunction(document.form.myValue, <? print
$sitevar ?>)
and in myFunction(myValue, siteVar){
Well, then I try to use siteVar, and I get complaints that its' not an object.
I know I'm doing the wrong thing in how I'm treating it, but I don't know
how to do the right thing.
In myFunction (){
Should I do
new Num myNum("siteVar")
?
Thanks,
Lara
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA