Javascript - Load content, callback and loading
<p>Here is my 'getContent' functions which takes a URL:</p>

<pre><code>function getContent(url, callback) {
    var request = new Sys.Net.WebRequest();
    request.set_url(url);
    request.set_httpVerb("GET");
    var del = Function.createCallback(getContentResults, callback);
    request.add_completed(del);
    request.invoke();
}
</code></pre>

<p>What I'd like to do is display a loading image when this is called and then hide it when the callback is complete?</p>

<p>Can any suggest antying?</p>
