Going to the previous page
<p>I have the following piece of code:</p>

<pre><code>$j('#flagUpdateID').click(function() {
    var form = $j('#messageUpdateForm');
    post = $j.post(
        '/myapp/form/ajaxUpdateMessageWithFlags', 
        form.serialize(), 
        function(data) {
            $j().message("Message Updated With Flags", function() {
            })
        }
    );
});
</code></pre>

<p>I have tried adding <code>history.back(-1)</code> before and after the <code>.message</code> call but it doesn't seem to take me to the previous page. How can I get to the previous page after an AJAX call?</p>
