You cannot use an AJAX call to another domain like that. It's a cross- domain no-no. However, there is a workaround using JSONP.
Here are some resources: http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback http://remysharp.com/2007/10/08/what-is-jsonp/ On Feb 4, 5:41 am, "mcandrew....@gmail.com" <mcandrew....@gmail.com> wrote: > I need to call $.ajax with a fully qualified url. For instance: > > $.ajax( > { > type: "GET", > url: "http://www.google.com", > dataType: "html", > success: function(data) > { > alert(data); > }, > error: function(XMLHttpRequest, textStatus, > errorThrown) > { > alert(textStatus + errorThrown); > } > }); > > It always hits the alert in the error function with "errorundefined".