File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Twice Ajax Call on Firefox Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Twice Ajax Call on Firefox" Watch "Twice Ajax Call on Firefox" New topic
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 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 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
 
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture