Hi, This is my follow up message . . .
Thanks, David ---------- Forwarded message ---------- Date: Wed, 11 Sep 2002 23:32:07 -0700 (Pacific Daylight Time) From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: code question? (2) P.S. Hi, Oops . . . the test I listed in my previous message <SCRIPT LANGUAGE="JavaScript"> <!-- var indexItemSelected = ""; function selectIndexItem() { indexItemSelected = item; } </script> Should have been type=radio name=item value=\"$urlname/$filename\" onClick=selectIndexItem()> I copied and pasted the wrong test lines. Does this help? Thanks . . . David ---------- Forwarded message ---------- Date: Wed, 11 Sep 2002 21:53:38 -0700 (Pacific Daylight Time) From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: code question? (2) Hi, Well, thanks to all who submitted some very great sounding suggestions- But unfortunately, none of them worked. :-( BUT, I did learn a lot more about how this script is working. First, here is the code line again- type=radio name=item value=\"$urlname/$filename\" onClick=selectIndexItem(\"$urlname/$filename\")&filenameSelected(\"$filename\")> And what I'm trying to do is, send two variables to the java lines with the "onClick" command. The two variables follow the onClick command in the above line. Next, I learned today, that the above line sends the variable (\"$urlname/$filename\") to the following javascript- (yes, I know this is not a javascript list, but until now I wasn't aware of the involvement of the java code, so could ask that you please bear with me?) <SCRIPT LANGUAGE="JavaScript"> <!-- var indexItemSelected = ""; function selectIndexItem(item) { indexItemSelected = item; } </script> The java lines are using the "name=item" and "value=\"$urlname/$filename\"" to get the variable, the variable doesn't come from the onClick=selectIndexItem(\"$urlname/$filename\"), like I first thought. I even tested the java line this way- <SCRIPT LANGUAGE="JavaScript"> <!-- var indexItemSelected = ""; function selectIndexItem() { indexItemSelected = item; } </script> And it still worked, but with the same results. I also tested the java lines this way- <SCRIPT LANGUAGE="JavaScript"> <!-- var indexItemSelected = ""; function selectIndexItem() { indexItemSelected = \"$urlname/filename\"; filenameSelected = \"$filename\"; } </script> And the script crashed (the browser gets a server error). In fact, it crashes with a $ or @ anywhere in the java lines. So . . . with this new information, can anyone help? It would be much appreciated . . . Thanks! David _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]