jQuery - how to register a callback for an asynchronous function?
<p>I am a jQuery newbie. I have a core js file which will not be visible to my user. I have the following function inside it that makes a server request -</p>

<pre><code>function checkMsgs(t1,t2) {

// poll the url
    // return the results 

    $.get("http://www.mySite.com/web/test.php", {
        "t1" : t1,
            "t2" : t2
    }, function(data) {
    return data;
});

}
</code></pre>

<p>Now, I want to call this function, without blocking the thread i.e., asynchronously. How do I make a function call after it returns from this method, but without blocking anything?</p>
