Solved

jQuery.ajax code does not work in Firefox

Posted on 2014-10-03
3
222 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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…

839 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