Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form has no submit() method?!

Status
Not open for further replies.

bardley

Programmer
May 8, 2001
121
US
Hi. I have:

<form name=&quot;lookupform&quot; method=&quot;post&quot; action=&quot;report_results.php&quot; target=&quot;report_data&quot;>

(some other stuff here)

<select name=&quot;type&quot; onChange=&quot;mod_date(selectedIndex); lookupform.submit()&quot;>

and IE insists on telling me that &quot;lookupform&quot; does not support the submit() property! NN just ignores it. Anyone know why???
Brad Gunsalus
Cymtec Systems, Inc.
bgunsalus@cymtec.com
 
curious...I've had this happen to me before too, but when I try your code (without the mod_date() function though) in IE 5.5 it works fine. are you closing all your tags, e.g. </option> </select> </form>?

 
works fine for me:

<html>
<head></head>
<body>
<form name=&quot;lookupform&quot; method=&quot;post&quot; action=&quot;report_results.php&quot; target=&quot;report_data&quot;>
<select name=&quot;type&quot; onChange=&quot;lookupform.submit()&quot;>
<option value=&quot;1&quot;>1
<option value=&quot;2&quot;>2
</select>
</form>
</body>
</html>


just in case make sure you have not called anything else
lookupform
 
I'll assume you have options in the select tag and have closed the select and form tags.

The code you provided worked fine for me. You may try putting an
Code:
id=&quot;lookupform&quot;
in the form tag. You may also try using the full
Code:
document.forms.lookupform.submit()
.

HiH, Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top