How to bind an error handler in case ajax call fails?
<p>I have the following code:</p>

<pre><code>$.get(viewUrl + para, function (data) {
    dialogDiv.html(data);
    ...
});
</code></pre>

<p>Is there some way that I can add an error check to this? Something that will call a function if the get fails?</p>
