470,614 Members | 1,458 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,614 developers. It's quick & easy.

submit problem

I was experiencing a false bug with safari when trying to submit a post form
from a javascript script:

function my_submit()

it doesn't work in the "current" version (1.0 v85.6) of Safari (nothing
happens) while it works with mozilla (1.5) and IE. So i tried:

function my_submit()

but i was having an error message in the Mac OS Console application.

In fact, it was because of the name of my submit button:

<input type="submit" name="submit" value="whatever">

but if i change the name of the button:

<input type="submit" name="Submit" value="whatever">

then, the first method works on the 3 browsers :)

Since i didn't find anything about that on google, i think it's a good idea to
post it with the keywords i used for my research.



Jul 20 '05 #1
2 1300
david wrote:
[...] then, the first method works on the 3 browsers :)

the second method, sorry


Jul 20 '05 #2
david a ecrit :
david wrote:

then, the first method works on the 3 browsers :)

the second method, sorry

Ah! Bon! that's better ;-)

with your last change in name of button to submit
try in firts method :

function my_submit() { document.theForm.Submit.click(); }

==> you ask to click on the element named 'Submit',
that's to say on the right button : submit

************************************************** ************
Stéphane MORIAUX : mailto:st*********************@wanadoo.fr
Aide aux Pages Perso (images & couleurs, formulaire, CHP, JS)
************************************************** ************
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by DB | last post: by
2 posts views Thread by Margaret Werdermann | last post: by
15 posts views Thread by JR | last post: by
1 post views Thread by kkuniya | last post: by
7 posts views Thread by Petr Vileta \(fidokomik\) | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.