Salut,
C'est correct, c'est ma solution qui ne l'est pas. Le problème est que lorsque tu soumet un formulaire, le document perd le focus.
Tu peux essayer ceci que j'ai trouvé sur un autre forum :
I've written the two forms so that when one submits, it redirects to the same page, and sends a hidden field like a flag to indicate it was submitted. Then, in javascript, I check to see if that flag is present, and if so, will fire off another form.submit() routine. You have to be careful to catch the values from the second form before submitting.
Another method is to have the second form on a second page which has the submit routne on the onLoad method. The page never really shows, it appears that the final page loads twice.
Partager