FilthyMinx
ISP
Hi,
I've got a perl script which is embedding a javascript snippet to (try) focus on a form element.
It looks like this :
<BODY onload="document.002_3A.description.focus();">
The rest of the HMTL has multiple forms :
<TR><TD ><IMG SRC='/Photos/Dee Gliding/th_001_2A.JPG'></TD>
<FORM METHOD='post' NAME='001_2A' ACTION='manage.pl?table=dee_gliding'>
<INPUT TYPE='hidden' name='action' value='update'>
<INPUT TYPE='hidden' name='table' value='dee_gliding'>
<INPUT TYPE='hidden' name='filename' value='001_2A.JPG'>
<TD>001_2A.JPG</TD><TD>
<INPUT TYPE='submit' NAME='show' VALUE='Hide'></TD><TD><INPUT TYPE='text' name='description' size='50' value='Sunset over Camberley Avenue' onUnfocus="send()"></TD>
</FORM></TR>
<TR><TD ><IMG SRC='/Photos/Dee Gliding/th_002_3A.JPG'></TD>
<FORM METHOD='post' NAME='002_3A' ACTION='manage.pl?table=dee_gliding'>
<INPUT TYPE='hidden' name='action' value='update'>
<INPUT TYPE='hidden' name='table' value='dee_gliding'>
<INPUT TYPE='hidden' name='filename' value='002_3A.JPG'>
<TD>002_3A.JPG</TD><TD><INPUT TYPE='submit' NAME='show' VALUE='Hide'></TD><TD>
<INPUT TYPE='text' name='description' size='50' value='Sunset over the rugby club trees' onUnfocus="send()"></TD>
</FORM></TR>
I was intending the focus to go to the second form above, to the description text-box, but this doesn't happen.
I've tried saving the output of the script to a .html file and accessing that directly to take the CGI side out of the equation, but the result is indentical.
Hope someone can help
I've got a perl script which is embedding a javascript snippet to (try) focus on a form element.
It looks like this :
<BODY onload="document.002_3A.description.focus();">
The rest of the HMTL has multiple forms :
<TR><TD ><IMG SRC='/Photos/Dee Gliding/th_001_2A.JPG'></TD>
<FORM METHOD='post' NAME='001_2A' ACTION='manage.pl?table=dee_gliding'>
<INPUT TYPE='hidden' name='action' value='update'>
<INPUT TYPE='hidden' name='table' value='dee_gliding'>
<INPUT TYPE='hidden' name='filename' value='001_2A.JPG'>
<TD>001_2A.JPG</TD><TD>
<INPUT TYPE='submit' NAME='show' VALUE='Hide'></TD><TD><INPUT TYPE='text' name='description' size='50' value='Sunset over Camberley Avenue' onUnfocus="send()"></TD>
</FORM></TR>
<TR><TD ><IMG SRC='/Photos/Dee Gliding/th_002_3A.JPG'></TD>
<FORM METHOD='post' NAME='002_3A' ACTION='manage.pl?table=dee_gliding'>
<INPUT TYPE='hidden' name='action' value='update'>
<INPUT TYPE='hidden' name='table' value='dee_gliding'>
<INPUT TYPE='hidden' name='filename' value='002_3A.JPG'>
<TD>002_3A.JPG</TD><TD><INPUT TYPE='submit' NAME='show' VALUE='Hide'></TD><TD>
<INPUT TYPE='text' name='description' size='50' value='Sunset over the rugby club trees' onUnfocus="send()"></TD>
</FORM></TR>
I was intending the focus to go to the second form above, to the description text-box, but this doesn't happen.
I've tried saving the output of the script to a .html file and accessing that directly to take the CGI side out of the equation, but the result is indentical.
Hope someone can help