Pause on anonymous function, when function is defined
<p>I have this function in my js script.</p>

<pre><code>//handle the deleting of the shoutlines
function delete_shoutline(shoutline_number)
{
    //the number of the shoutline we're deleting
    var shoutline = shoutline_number;

    $.post("shoutbox/delete_ban.php", {shoutline : shoutline_number},
    function(result)
    {
        //show the result, if any
        alert(result);

        //refresh the page
        window.location = window.location;
    });

}
//handle the banning of users
function ban_user(user_ban)
{
    //the name of the user we are banning
    var banned = user_ban;

    $.post("shoutbox/delete_ban.php", {banned : user_ban},
    function(result)
    {
        //show the result, if any
        alert(result);

        //refresh the page
        window.location = window.location;
    });

}
</code></pre>

<p>here are the calls</p>

<pre><code>&lt;a href='javascript: delete_shoutline(SOMEID);' title='Delete' class='delete' onclick=\"return confirm('Are you sure you want to delete this message?');\"&gt;x&lt;/a&gt;&lt;a href='javascript: ban_user(SOMEUSER);' title='Ban' class='ban' onclick=\"return confirm('Are you sure you want to ban this user?');\"&gt;o&lt;/a&gt;
</code></pre>

<p>the function <code>delete_shoutline</code> works great, but when I click the ban link my console pauses and says <code>(anonymous function) members.php (2):1
Paused on exception 'ReferenceError'</code></p>

<p>and Debugger says <code>Uncaught ReferenceError: SOMEUSER is not defined</code></p>

<p>I am not the best with js so I really don't know what this means?
I am not really sure what this means because the function is defined in the js.</p>
