How do I get the user info of a twitter user using javascript?

Posted by user187809 on Stack Overflow See other posts from Stack Overflow or by user187809
Published on 2011-01-04T16:34:33Z Indexed on 2011/01/04 16:54 UTC
Read the original article Hit count: 175

Filed under:
|
|

Using jquery's $.ajax function, I'm not able to parse the results. For example, I used it like this

$.ajax({

    url : "http://api.twitter.com/1/users/show.json?screen_name=techcrunch",
    dataType : "json",
    success : function(data)
    {
        // parse the JSON here
    },
    error : function()
    {
        alert("Failure!");
    },

});

This doesn't work. Do I need a callback function?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery