Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: javascript form.submit() problem


Message #1 by "anthony vitiello" <anthony.vitiello@a...> on Mon, 4 Feb 2002 19:48:53
Thanks Shankar.  I did not have any other fields named submit.  I did, 
however, resolve the problem by changing:

<a href="#" onclick="document.intro.submit();"> 

to

<a href="javascript:document.intro.submit();">

Hope this is helpful to anyone experiencing the same problem.  Works in 
IE5.0, IE5.5, NN4.7, NN6.x!

Tony



> Hi,
> 
>    When you are using submit() function, make sure that 
> no form fields (submit button, input box etc) in the form
> is named as "submit".
> 
> Regards,
> Shankar
> 
> -----Original Message-----
> From: anthony vitiello [mailto:anthony.vitiello@a...]
> Sent: Monday, February 04, 2002 7:49 PM
> To: javascript
> Subject: [javascript] javascript form.submit() problem
> 
> 
> I call the document.form_name.submit() method after clicking on a 
> hyperlink.  It works fine in Netscape 4.7 and 6.x and works fine in IE 
> 5.5.  However, it will not submit the form when using an IE 5.0 
browser.  
> I believe I have read that this should work with IE 5.  Any suggestions 
as 
> to why it may not be working?
> ---
> 

  Return to Index