Solved

jQuery.ajax code does not work in Firefox

Posted on 2014-10-03
3
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

617 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