I'm trying to get this code to work:

function favorite(id, uri) {
    $.post(uri,
        function(data) {
            console.log("data: " + data);
            console.log("data.tt: " + data.tt);
        },
        "json"
    );
}

My console output is:
POST http://localhost:5000/music/artist8/test_song_0/favorite/
634msjquery-1...6.pack.js (line 11)
data: {"text": "Add to watchlist", "tt": "Click to add this song to
your watchlist"}
data.tt: undefined


So the JSON object my server generates looks fine to me. Why is
data.tt undefined?
Anyone?

Thanks!

Hannes

Reply via email to