The getJSON shortcut doesn't have a parameter for an error handler. You could just use the direct ajax call:
$.ajax({url:url,dataType:'json',success:processResults,error:handleError}); JK -----Original Message----- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Trans Sent: Wednesday, October 17, 2007 8:46 AM To: jQuery (English) Subject: [jQuery] Re: getJSON, I don't get it On Oct 17, 8:31 am, Trans <[EMAIL PROTECTED]> wrote: > The "home.json" file loads just fine, but the callback is never > invoked, i.e. alert(data) never runs. It had been working fine, and > all of a sudden it just stopped working. So I stripped it down to just > what you see above, and it still doesn't work! What am I doing wrong? Ugh. Never mind. I've just discovered that "wonderful feature" that getJSON gladly fetches invalid JSON but never bothers to throw an error. -Trans