Click to See Complete Forum and Search --> : Challenge with IE5
rdeering
03-25-2003, 05:55 PM
I'm using the following javascript code to submit a form. It works fine in IE6 and netscape but it doesn't do anything in IE5..
function previewclick() {
document.form1.preview.value=1
document.form1.submit()
}
Can anyone help me......
Nedals
03-25-2003, 06:33 PM
It should work, but try changing the name of your form to 'theform' instead of 'form1'. (a poor choice of name). It's possible that IE5 may looking for forms[1]. Just a guess!
rdeering
03-25-2003, 06:47 PM
Here's how i call it
<a href="#" OnClick="doneclick()"><img src="images/button-berg-ad-done.gif" border="0" WIDTH="40" HEIGHT="22"></a>
i changed the form name and it still doesn't work
Nedals
03-25-2003, 07:07 PM
<a href="#" OnClick="doneclick()"><...That worked in IE6 and NS? I think not!!
It should be...
<a href="#" onClick="return previewclick()"><..
I also included a couple of other changes.
Also add a 'return false' at the end of your JS function.
There could be other problems with your HTML <form action=.. etc>