Re: [jQuery] $.ajax - different results in Chrome and Safari.

2010-01-02 Thread Nathan Klatt
On Sat, Jan 2, 2010 at 1:13 AM, bookmarc  wrote:
> The following code gives a a "parser error" in Google Chrome and
> Firefox but seems to work in Safari.  Can anyone see what I am doing
> wrong or understand why this is happening?

I see a couple things that make me wonder:

> 
> ...
> 

Maybe this was just a transcription oops, but drop the "er"s.

>                diagnostics: "false"

True booleans shouldn't have quotes around them, though it could be
your server wants them in string form for some reason, I suppose.

Good luck.

Nathan


[jQuery] $.ajax - different results in Chrome and Safari.

2010-01-02 Thread bookmarc
The following code gives a a "parser error" in Google Chrome and
Firefox but seems to work in Safari.  Can anyone see what I am doing
wrong or understand why this is happening?  Thanks for your help and
time.






$.ajax({
type: "GET",
url: "http://query.yahooapis.com/v1/public/yql";,
data: {
q: "SELECT * FROM flickr.photos.search WHERE text='Cat'",
format: "json",
diagnostics: "false"
},
dataType: "json",
async: true,
success: function (data, textStatus) {
console.log('1  - ' + typeof(data));
console.log(data.responseText +  '   text :' +
textStatus);

},
 error: function (x,t,e) { console.log('Error --1 : ' + x + t + e);
  console.log(x.url);
  console.log(x.status);
  console.log(x.responseText);
}
});