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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

document.formname.submit

Status
Not open for further replies.

vasah20

Programmer
Joined
Feb 16, 2001
Messages
559
Location
US
I have no idea why this doesn't work in MSIE. Is it because I'm trying to populate and submit the form from a text link?

Code:
<head>
...
<script type=&quot;text/javascript&quot; language=&quot;javascript&quot;>

/**
 * submit the GET request through the filter form
 **/
function filterById(emailId) {
	var ldf = document.LogDetailForm;
	if(emailId >= 0) {
		ldf.emailId.value = emailId;
		ldf.submit();
	}
} 
</script>
</head>
<body>
...
<form name=&quot;LogDetailForm&quot; method=&quot;POST&quot; action=&quot;/strutsWeb/messageLevel.do&quot;>
Limited to Email Id: <input type=&quot;text&quot; name=&quot;emailId&quot; value=&quot;&quot;><br />
<input type=&quot;submit&quot; name=&quot;Filter&quot; value=&quot;Show Actions&quot;>
</form>
...
<a href=&quot;javascript: void();&quot; onclick=&quot;filterById('123');&quot;>123</a>

Ideas?

 
Does it work if you use
Code:
<a href=&quot;javascript: filterById('123');&quot;>123</a>
?

(I wonder what happens in that situation. When you've got an href and an onclick on one link I mean. Hrmmmm.)
 
I'm having a similar issue:
thread216-664044

A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
- Quote by Douglas Adams
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top