Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
$.ajax({
    url: postUrl,
    type: 'GET',
    dataType: 'json',
    data: { "id": num },
    contentType: "application/json; charset=utf-8",
    success: function (data) {


        $.each(data, function (id, allFollowers) {
            result += 'Title : ' + data + '<br/>';
        });


What I have tried:

I've tried: data.allFollowers[0].screeName, data[0].allFollowers[0].screeName...

I can see these values exist here in debug mode, however it returns a null error..?
Posted
Comments
Bryian Tan 13-Jul-18 23:33pm    
hmmm. Not clear what the code is trying to do. but look like the correct syntax should be
result += 'Title : ' + allFollowers.screeName + '<br/>';

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900