David,

<input type=radio name=item value=\"$urlname/$filename\"
onClick=selectIndexItem(\"$urlname/filename\")&filenameSelected(\"$filename\
")>

Should be

<input type=radio name=item value=\"$urlname/$filename\"
onClick="selectIndexItem(\"$urlname/filename\");
filenameSelected(\"$filename\");">

Simply Change & to ; and put quotes around the two javascript function
calls.

It's proper javascript to end a function call with a colon.

Tony


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 10, 2002 2:19 PM
Subject: code question


> Hi,
>
> I'm using a cgi script which creates an html form, using a radio button
> and a submit button, and I'm trying to find a way for the cgi code to
> return two variables under one "onClick" command.
>
> Here's the line-
>
> <input type=radio name=item value=\"$urlname/$filename\"
>
onClick=selectIndexItem(\"$urlname/filename\")&filenameSelected(\"$filename\
")>
>
> As you can see, when the user clicks on the submit button, after making
> the radio button selection, the "onClick"  command sets the java variable
> "selectIndexItem" to (\"$urlname/filename\") and sends it to the
> javascript section of the script.  This works fine if I stop the line at
> that point, and use only one variable.
>
> However, I'd also like to send the second variable "filenameSelected", set
> to the value (\"$filename\"), and, at the same time.  As you can see, I
> tried doing this by separating the two variables with an ampersand.
> However, that doesn't work.
>
> Can anyone help?
>
> Thanks,
>
> David
>
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to