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.
<html> <header> <script src="js/jquery-1.3.2.min.js" type="application/x-javascript" charset="utf-8"></script> </header> <script> $.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); } }); </script> </html>