kwun hin wong
kwun hin wong

Reputation: 1

Success Event does not Fired

$.ajax('http://blog.yahoo.com/@apac3/ajax/getComment?ugcId=68197&commentCount=30&ownerGuid=IQDTYHIWBYN4PPB6DXQWU7JWN4&page=2&type=blog&.crumb=UxHpRaVVUMo&jsoncallback=?', {
        type: "GET",
        crossDomain:true, 
        async: false, 
        dataType: "jsonp",
        success: function(comment){
            alert("myObject is " + comment.toSource());
        }
    });

I can see some callback is in chrome's console, however, there is some errors that making success event cannot function normally.

Does anyone know how to obtain the values in the callback?

Upvotes: 0

Views: 86

Answers (1)

cwallenpoole
cwallenpoole

Reputation: 82028

Your biggest issue is that comment is probably not an instance of a class but is either a string or is a basic JSON object. Unless you have some library which will change the way that Strings or JSON work by modifying the prototypes.

Upvotes: 1

Related Questions