Author
Twice Ajax Call on Firefox
Abhijit Roy Chowdhury
Greenhorn
Joined: Feb 25, 2009
Posts: 4
In the form there is one textbox where user will enter a team & besides that there is a <input type='button'/> object is present.
After entering name, when button is clicked, ajax call is occurred, to check whether the name is present in Database.
-The problem is in firefox this calling occurs twice (internally), but in IE it is working fine, i.e. when button is clicked only one server request sent from ajax.
Can anybody shoot some pointer on this?
Thanks in advance.
Regards,
@bh!j!+
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 48842
Maybe it might help to see the actual code? (be sure to use code tags)
This message was edited 2 times. Last update was at Sep 02, 2010 07:37:10 by Bear Bibeault
[Smart Questions ] [JSP FAQ ] [Books by Bear ] [Bear's FrontMan ] [About Bear ]
pete stein
Bartender
Joined: Feb 23, 2007
Posts: 1561
cross-post: http://www.java-forums.org/web-frameworks/32027-twice-ajax-call-firefox.html
Original poster, please read the forum FAQ's and in particular this one: BeForthrightWhenCrossPostingToOtherSites
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 48842
Please let us know when you've cross-posted a question to other forums.
Abhijit Roy Chowdhury
Greenhorn
Joined: Feb 25, 2009
Posts: 4
Saturday, August 28, 2010 9:10:10 PM
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 48842
Sarcasm will not endear you to the people who are best able to help you. I suggest a different strategy.
Abhijit Roy Chowdhury
Greenhorn
Joined: Feb 25, 2009
Posts: 4
in jsp,
on clicking the button, i want to check the team name with database through a ajax call....
in firefox, this call happens twice.
- is it clear now?
Please note that, this reply is not cross-posted to any other forums.
can i have any suggestion now on ajax behavior?
This message was edited 1 time. Last update was at Aug 30, 2010 12:47:24 by java rabid
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 48842
Ignoring the attitude for the moment, it'd also be helpful if you would post the click hander, and how that handler is established.
Lee' Bin
Greenhorn
Joined: May 12, 2010
Posts: 16
put your jquery code. i think it's somewhere worng.
subject: Twice Ajax Call on Firefox