Anonymous
public javascript v1 · immutable$.getJSON( '/url', {type: 'foo', tally: 10}, function(json) { if (json.status != 'ok') { alert(json.data); return; } $.ajax({ type: 'POST', url: '/url2', data: json, success: function(data) { $("#foobar").append(data); } }); }}