Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

jQuery.ajax code does not work in Firefox

Posted on 2014-10-03
3
Medium Priority
?
229 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 83

Accepted Solution

by:
leakim971 earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

877 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