Ian Davis
Ian Davis

Reputation: 19423

ajax get does not work in chrome but does in Firefox

var url = "http://opensocial.flixster.com/igoogle/showtimes?date=20111027&postal=23226";

$.ajax({
    url: url,
    success: function (html) {
        alert('in success'); // THIS NEVER HAPPENS
    },
    error: function () { return null; }
});

The above works in Firefox just fine, but, success function is never triggered in Chrome. Does anyone know why? And, any alternatives to make it work in all browsers?

Thanks!

Upvotes: 0

Views: 1290

Answers (1)

Juri
Juri

Reputation: 32910

Just tried it over on jsbin and works perfectly: http://jsbin.com/eyikac/2/edit#javascript,live

What kind of error does it give? Try to check the Chrome developer tools JavaScript console for error messages.

Upvotes: 1

Related Questions