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

I can't submit a form with IE5.0

Status
Not open for further replies.

Ditter

Programmer
Sep 11, 2000
16
0
0
FR
Friends of TTF:

I'm trying to send a form on IE5.o, but it doesdn;t works. On NN 4.7 works fine. The code is (Form Name: menu)

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>

function sendForm(control, text)
{

alert(&quot;Previous value: &quot; + control.value );

if ( control.value == text )
{
control.value = &quot;no&quot;;
}
else
{
control.value = text;
}

alert(&quot;Last value: &quot; + control.value );

document.menu.submit();

}

</SCRIPT>

The place where I call the function is:

<A HREF=&quot;#&quot;
onClick='sendForm (document.menu.catalogs, &quot;yes&quot;);'>

where &quot;document.menu.catalogs&quot; is a hidden control.

Cold you tell me why?
 
I can't see any problems with it, i have it working correctly, that is, it reads all the lines, and functions correctly, just make sure any other stuff (not included in your post) is working.

-BUT, I found that using href=&quot;#&quot; did cause some probs, so try changing it to href=&quot;void(0)&quot; and see if that works!

-Ben &quot;Alright whatever man, I'll hook up the hair, but I aint touchin the ring though...Cause I'm still a pla--yer&quot;
 
just one thing : do you have to submit your form with an <a href=...> ??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top