jQuery error "uncaught exception..."

-1

uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.getAllResponseHeaders]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: =1299105704512">http://code.jquery.com/jquery-1.5.min.js?=1299105704512 :: anonymous :: line 16" data: no]

My repeating AJAX calls cannot load completely, they are just loading and loading... Is that from the ajax calls - 3, including one that repeats every 5 seconds? How to fix it?

Edit: I use this code for including jQuery

<script src="http://code.jquery.com/jquery-1.5.min.js"></script>

Here are my AJAX requests:

$.ajax({
type: "GET",
url: "subscribe1.php", 
data: "feed="+feeded+"&user="+thisuserd , 
success: function(msged){
$("#csub").html(msged);
}
});
$(document).ready(function() {
    setInterval("ajaxd()",5000);
});

function ajaxd() { 
    var thisuser = $("#thisusern").text();
  $.ajax({
   type: "GET",
   url: "newstitle.php",
   data: "user="+thisuser,
   success: function(msg){
     $("#edix").html(msg);
   }
 });
} 
      $.ajax({
   type: "GET",
   url: "newscontent.php",
   data: "title="+titled+"&timestamp="+timestampd,
   success: function(msgd){
    var splitups = msgd.split("|");
    var titleds = splitups[0];
    var content = splitups[1];
    $("#whatsup").html(titleds);
    $("#content").html(content);

   }
 });
jquery
exception
uncaught-exception
asked on Stack Overflow Mar 2, 2011 by randomwebdev • edited Jun 8, 2014 by 416E64726577

1 Answer

0

Have you tried to override .ajaxError()? More info

Some example:

$("#msg").ajaxError(function(event, request, settings)
{
   $(this).append("<li>Error requesting page " + settings.url + "</li>");
});

Here you have more about Firefox Exceptions.

Hope this helps.

answered on Stack Overflow Mar 2, 2011 by David Diez

User contributions licensed under CC BY-SA 3.0