cannot display json data returned from jquery ajax call
Posted
by amby
on Stack Overflow
See other posts from Stack Overflow
or by amby
Published on 2010-04-06T19:48:04Z
Indexed on
2010/04/06
19:53 UTC
Read the original article
Hit count: 311
Hi, can somebody please tell me, how can I display json data returning from the ajax call. I am new to this. $.ajax({ type: "POST", dataType: 'JSON', //data: "{'ntid':'john'}", //contentType: "application/json; charset=utf-8", //processData: false, url: "Testing.aspx/SendMessage", error: function(XMLHttpRequest, textStatus, errorThrown) { alert(textStatus); }, success: function(result, txtStatus, httpRequest) { alert(txtStatus); the_object = result; $('#status').html(concatObject(the_object)); }
above is the js file. should i need to do something on asp file directly to display it. if yes, then how? please reply me soon. i m stuck here and unable to display data here
© Stack Overflow or respective owner