I am having a strange problem. When I click a link in my webpage the action attached to that click is called twice instead of just once... Then, when the action is finished for the 2nd time, it goes where the action forward says. The action works perfectly but it does it two times which is a big problem since the action consist of writing in a database (it writes the same two times ). Anyone knows what could be happening?
Thanks
vijay jamadade
Ranch Hand
Joined: May 12, 2008
Posts: 191
posted
0
please send the code. Have you used html:submit and also submitting the form through javascript.
Regards, Vijay Jamadade.
( Nothing is Impossible.)
Raj Kamal
Ranch Hand
Joined: Mar 02, 2005
Posts: 392
posted
0
Hi,
On a project one of my team mates faced something of the same sort. Each form had a simple button which would invoke a javascript function call and the function would submit the form based on the status of the form validation. Later this button was changed to a submit button and the same situation arose. Debugging revealed that the form was getting submitted twice. Once with the html submit button. And the next time with the javascript form.submit() call.
I felt it was worth a metion as you could probably have a similar situation. For any more thoughts you ought to post more detail...
Cheers,
Raj.
Mnau Lubi
Ranch Hand
Joined: Mar 17, 2010
Posts: 32
posted
0
When I click in Join, the action /join is called two times
This message was edited 1 time. Last update was at by Mnau Lubi