Termite
08-12-2003, 05:35 AM
I am experienceing difficulties with certain javascript events.
The javascript function simply submits a form using the code below.
function submitform(form)
{
document.forms[form].submit()
}
When using onclick it doesn't work at all.
Using onmousedown it works for all but one of my links.
Using onmouseover works but takes a while to fire.
The calling script looks like this:
<tr>
<td width=20><img src="Images/Folder_Icon.gif"></td>
<td class=FolderHeading>Six Weekly Local Add Plans</td>
<td></td>
</tr>
<tr>
<td></td>
<td class=FolderDesc>These plans should include all local marketing requests for teletext advertising and direct mail</td>
<td align=right>
<form id="Form2" name="Form2" action="ShowFolder.asp" Method=post>
<input type=hidden name=Folder value="c:\inetpub\wwwroot\mitsu-w\marketingtoolkit\mkt\Six Weekly Local Add Plans\">
</form>
<a href="javascript:"><img src="Images/Arrow.gif" border=0 onclick="submitform('Form2')"></a>
</td>
</tr>
I have attached the full code.
Thanks.
The javascript function simply submits a form using the code below.
function submitform(form)
{
document.forms[form].submit()
}
When using onclick it doesn't work at all.
Using onmousedown it works for all but one of my links.
Using onmouseover works but takes a while to fire.
The calling script looks like this:
<tr>
<td width=20><img src="Images/Folder_Icon.gif"></td>
<td class=FolderHeading>Six Weekly Local Add Plans</td>
<td></td>
</tr>
<tr>
<td></td>
<td class=FolderDesc>These plans should include all local marketing requests for teletext advertising and direct mail</td>
<td align=right>
<form id="Form2" name="Form2" action="ShowFolder.asp" Method=post>
<input type=hidden name=Folder value="c:\inetpub\wwwroot\mitsu-w\marketingtoolkit\mkt\Six Weekly Local Add Plans\">
</form>
<a href="javascript:"><img src="Images/Arrow.gif" border=0 onclick="submitform('Form2')"></a>
</td>
</tr>
I have attached the full code.
Thanks.