Display text returned from json post call

Posted by splatto on Stack Overflow See other posts from Stack Overflow or by splatto
Published on 2010-03-15T18:45:19Z Indexed on 2010/03/15 18:49 UTC
Read the original article Hit count: 199

Filed under:
|
|
|

I have the following javascript:

$.post("/Authenticated/DeletePage/" + PageId);
showStatus("Page deleted...", 10000);

I would like to instead pass showStatus() text that is returned by the $.post() call, rather than hardcoded text. How do I do this?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript