How to get the return value of the Jquery.ajax succes function

Posted by Jishnu on Stack Overflow See other posts from Stack Overflow or by Jishnu
Published on 2010-12-30T12:46:34Z Indexed on 2010/12/30 12:54 UTC
Read the original article Hit count: 188

Filed under:
|
|

I have some code like this

function doSomething(){
      Jquery.ajax(type: "POST",
                url: "HelloWorld",
                 success: function (msg) {
                 if(msg.d =="Hello World")
                 {
                     return true;
                 }else
                  {
                     return false;
                  }
                 }

      );
}

i want to know something based on which the return value of the succes function. Can somebody help?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery