[jQuery] Re: getjson request an unavailable page

2009-11-20 Thread MorningZ
"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

Re: [jQuery] Re: getjson request an unavailable page

2009-11-20 Thread Jon Crump
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

[jQuery] Re: getjson request an unavailable page

2009-11-18 Thread Humpty Dumpty
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?

[jQuery] Re: getjson request an unavailable page

2009-11-18 Thread Peter
use $.ajax() instead, you can define function when the ajax fails On Nov 18, 12:17 am, Humpty Dumpty wrote: > Hi guys, > I write a web page that retrieve the data from a JSON formatted file > but when this fiel doesn't exist I can't see any error; > how I can handle this situation > thanks