I have a page has an anchor href to the home page and calls ajax on a user request. If I open the page and click on the link to go to the home page it returns to the home page without error, but if I make the page call the ajax and then click on the link, I get the following error.
[Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.getAllResponseHeaders]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://local-www.crowdcloud.com/js/jquery-1.5.1.min.js :: anonymous :: line 7401" data: no]
The ajax appears to be working fine. I'm getting back the data I need. The link is as follows: Home When I click on it I get the error message, but the page does go where directed.
Using Zend, JQuery 1.5.2
I'm guessing that you're getting this in FF. It is a know problem.
What you are doing is causing the error event to be thrown when the ajax call is still in progress by clicking a link to another page.
If you then try and handle the error and access the error function's "errorThrown" property, you'll get this error.
after one hour of googling, finally an other stackoverflow answer worked well for this horrible bug : AJAX POST handler causing "uncaught exception" I got this error with an input submit and button submit, the solution is such :
<form ... onsubmit="return false;">
or
$('form').bind('submit', function(){ return false;});
User contributions licensed under CC BY-SA 3.0