title: $.post throwing "Illegal invocation "
body: <p>Edit: None of the answers suggested so far have worked at all.</p>
  
  <p>I'm running this call with django. The first time it runs, the server returns "n_usr" (which changes the form the user files in). The second time, it just throws an <code>Illegal invocation</code> error. </p>
  
  <pre><code>function log_in () {
  
          username = $('#usr_enter').val();
          password = $('#pass_enter').val();
          if(!n_usr){
              $.post('/ajax/login',{password: password, username: username}, function(data) {
                if(data == "n_usr"){
                  $('#new_user_entry').show('slow');
                  n_usr = true;
                }
                else {
  
                }
  
              })
      }else {
          password2 = $('#pass_re_enter');
          penname = $('#pen_enter');
              $.post('/ajax/login', {password: password, password2: password2, username: username, pen_name: penname, TN: "TN"}, function(data) {
                  if(data == "e_act"){
  
                  } else {
  
                  }
              });
          }
      }
  </code></pre>