Solved

jQuery.ajax code does not work in Firefox

Posted on 2014-10-03
3
215 Views
Last Modified: 2014-10-03
The jQuery ajax shown here works fine in Chrome 37, IE 10, and Opera 24 but does not work in Firefox 32.
I've established that it is called (the window.location command works correctly) but that the target URL is not  called.
I've tested both with and without the FQD string of the url and I've tested the target without relying on the data.  So I can only conclude that the failure is in going to the URL at all.  I've also tested it with and without the datatype and cache lines.
In all variations it works in the other 3 browsers but not in Firefox.  Any help would be appreciated!

 function rearrange()
  {
      jQuery.ajax({
       type: "POST",
       url: "x_rearrange.php",
       data: { frm: startmove, tom: endmove },
       datatype: 'json',
       cache: false
     });
     startmove=-1;
     endmove=-1;
     dragging=0;
     window.location = 'http://www.agotogo.com/personal'
  }

Open in new window

0
Comment
Question by:DMTrump
3 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40360219
Is there a url to see it?
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 40360223
replace :
     jQuery.ajax({
       type: "POST",
by :
     jQuery.ajax({
       async: false,
       type: "POST",
0
 

Author Closing Comment

by:DMTrump
ID: 40360236
Brief and to the point - that did it!  (In all four browsers) I had examined many other examples of code and didn't see that mentioned anywhere!  Thanks a lot
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to dynamically set the form action using jQuery.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now