beginning to use jquery
<p>The code</p>

<pre><code>uri = 'http://www.test.com/';
$.ajax({
    url: uri,
    success: function(msg){
        sc.searchcontents = msg;
        alert(sc.searchcontents);
    }
});
alert(sc.searchcontents);
</code></pre>

<p>alerts undefined, then alerts the page's source code.</p>
