"ok, I will try by the use of ajax but nobody that used getjson had this problem?"
Everyone and anyone using "$.getJSON" *is* using "$.ajax" straight from the jQuery file getJSON: function( url, data, callback ) { return jQuery.get(url, data, callback, "json"); }, which in turn calls get: function( url, data, callback, type ) { // shift arguments if data argument was ommited if ( jQuery.isFunction( data ) ) { callback = data; data = null; } return jQuery.ajax({ type: "GET", url: url, data: data, success: callback, dataType: type }); }, On Nov 20, 1:25 pm, Jon Crump <jjcr...@myuw.net> wrote: > On Wed, 18 Nov 2009, Humpty Dumpty wrote: > > > Thanks, I though that there was a "JSON" solution; > > ok, I will try by the use of ajax but nobody that used getjson had > > this problem? > > As a matter of fact, I just did. As I understand it $.getJSON() seems to > be just a wrapper around an $.ajax() request. So I used $.ajaxSetup() to > define an error handling routine. > > see:http://stackoverflow.com/questions/572991/jquery-getjson-doesnt-trigg... > > and:http://docs.jquery.com/Ajax/jQuery.ajax