DMTrump
asked on
jQuery.ajax code does not work in Firefox
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!
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'
}
Is there a url to see it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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