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

Runtime Error trying to submit form to itself

Status
Not open for further replies.

dtrahokie

Programmer
May 10, 2004
25
US
I have a simple function that looks like this:

<script type="text/javascript">
function RefreshPg() {
document.gsql.submit();
}
</script>

It's called from the onchange event in a select box that looks like this:

<SELECT name="IPv" ID="IPv" onchange="RefreshPg();">

I keep getting this error when I execute the onchnage event:

"Microsoft JScript runtime error: Object doesn't support this property or method"

When I debug the error it shows the problem as being my submit statement in my javascript function.

Does anyone kno what would be causing this error on such a simple statement? I'm stumped!

Thanks greatly in advance.
 

Do you have a form called "gsql"? If so, do you also have any other elements with that name? If you do, rename them.

Hope this helps,
Dan
 
BillyRayPreachersSon it worked great! Thanks so much. I actually was using the Name and ID tags on the select box with the same "gsql" identifier. Once I deleted the ID tag it worked like a champ.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top