aspose 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 ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56553
    
  14

Maybe it might help to see the actual code? (be sure to use code tags)



[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 ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56553
    
  14

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 ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56553
    
  14

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?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56553
    
  14

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Twice Ajax Call on Firefox
 
Similar Threads
jQuery toggle not working
Struts HTML Lib w/Ajax - Can't get textbox value to Action class
Adding cells to Table one at a Time
pass value from struts2 form to javascript
one applet calling another