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

submit form w/onchange and onclink works in IE not Net

Status
Not open for further replies.

joyster

Programmer
Feb 26, 2001
2
US
I have written the following function, and try to call it using the below events. This works great in internet explorer but not in netscape. Can you help?

function formHandler(selected)
{
var inselected = selected
if (inselected == "N")
{
document.OrderCriteria.Action.value = "1"
}
document.OrderCriteria.selected.value = inselected
OrderCriteria.submit()
}
<select size=&quot;1&quot; name=&quot;orderStatus&quot; OnCHANGE=&quot;javascript:formHandler('Y')&quot;>
<input type=&quot;reset&quot; value=&quot;Reset&quot; name=&quot;btnReset&quot; OnCLICK=&quot;javascript:formHandler('N')&quot;>

Thanks in advance,
Joy
 
Hi joyster!
Did you place <select>, <input> and other form elements inside <FORM> ... </FORM> tag?
If not, this won't work in Netscape Navagator.

Andrew | starway@mail.com
 
yes all my input tags are within <form></form> tags. I did not include the whole page here because of size.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top