Gossamer Forum
Home : Products : DBMan : Discussions :

Help with Javascript

Quote Reply
Help with Javascript
I have to add a javascript in html.pl

This part should go before the head of the adding form:

<SCRIPT LANGUAGE="JavaScript">

</script>

And this in the form part:

<FORM NAME="main">
<SELECT NAME="Make" onChange="fillSelectFromArray(this.form.Team, ((this.selectedIndex == -1) ? null : team[this.selectedIndex-1]));">
<OPTION VALUE="-1">Select Team
<OPTION VALUE=1>Montreal Canadiens
<OPTION VALUE=2>Pittsburg Penguins
<OPTION VALUE=3>Toronto Maple Leafs
<OPTION VALUE=4>Ottawa Senators
</SELECT>
<BR>
<SELECT NAME="Team" SIZE="5">
<OPTION> </OPTION>
<OPTION> </OPTION>
<OPTION> </OPTION>
<OPTION> </OPTION>
<OPTION> </OPTION>
</SELECT>
</FORM>


I tried it, but when I add the first part into the head it return me an error.

What do I have to do?

Thank you





Subject Author Views Date
Thread Help with Javascript tizfur 3113 Jul 16, 2001, 8:29 AM
Thread Re: Help with Javascript
Stealth 3017 Jul 16, 2001, 9:19 AM
Thread Re: Help with Javascript
tizfur 3011 Jul 16, 2001, 11:42 PM
Post Re: Help with Javascript
Keef 2982 Jul 17, 2001, 10:19 PM