title: What's wrong with this code? :/
body: <p>i think my code is ok but when i try to launch the ajax call binded to #save input it reloads the page and no xhr calls are launched :/ , firebug console shows me this error:</p>
  
  <p><code>uncaught exception: [Exception... "Not enough arguments [nsIDOMLocation.replace]"  nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)"  location: "JS frame :: <a href="http://localhost/mysite/js/jquery.js" rel="nofollow">http://localhost/mysite/js/jquery.js</a> :: &lt;TOP_LEVEL&gt; :: line 18"  data: no]
  <a href="http://localhost/mysite/js/jquery.js" rel="nofollow">http://localhost/mysite/js/jquery.js</a>
  Line 18</code></p>
  
  <p>i'm using jQuery 1.6.2 version and my code is simply this :</p>
  
  <pre><code>&lt;ul class="profile-account"&gt;
                      &lt;li&gt;&lt;h1&gt;Account&lt;/h1&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;h4&gt;Username&lt;/h4&gt;&lt;input type="text" id="username" class="bradius3" value="&lt;?php echo $populateUser-&gt;username; ?&gt;"/&gt;&lt;/li&gt;
                      &lt;li class="error" id="error_username"&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;h4&gt;Email&lt;/h4&gt;&lt;input type="text" id="email" class="bradius3" value="&lt;?php echo $populateUser-&gt;email; ?&gt;"/&gt;&lt;/li&gt;
                      &lt;li class="error" id="error_email"&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;h4&gt;Password&lt;/h4&gt;&lt;input type="password" id="password" class="bradius3"/&gt;&lt;/li&gt;
                      &lt;li class="error" id="error_password"&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;h4&gt;Password Confirm&lt;/h4&gt;&lt;input type="password" id="confirm-password" class="bradius3"/&gt;&lt;/li&gt;
                      &lt;li class="error" id="error_password_confirm"&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;h4&gt;Location&lt;/h4&gt;&lt;input type="text" class="bradius3" id="location" /&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;h1&gt;About Me&lt;/h1&gt;&lt;textarea id="about"&gt;&lt;?php echo $populateUser-&gt;about; ?&gt;&lt;/textarea&gt;&lt;/li&gt;
                      &lt;li class="error" id="error_about"&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;input type="submit" id="save" class="button floatRight bradiusMax" value="Save"&gt;&lt;/li&gt;
  
                   &lt;/ul&gt;
  </code></pre>
  
  <p>and ajax script:</p>
  
  <pre><code>var url_modify_account_xhr = "&lt;?php echo site_url('auth/modify_account_xhr');?&gt;";
  var username;
  var email;
  var password;
  var password_confirm;
  var location;
  var about;
  $(document).ready(function(){
  $('#users,#users span').addClass('active');
  $('#myaccount').addClass('user-profile-menu-active');
  
  $('#save').live('click',function(){
  username = $('#username').val();
  email = $('#email').val();
  password = $('#password').val();
  password_confirm = $('#password_confirm').val();
  location = $('#location').val();
  about = $('#about').val();
  modify_account_xhr(url_modify_account_xhr,username,email,password,password_confirm,location,about);
  });
  
  });
  
  function modify_account_xhr(url_modify_account_xhr,username,email,password,password_confirm,location,about){
  
     $.ajax({
          type:'POST',
          dataType:'json',
          url: url_modify_account_xhr,
          data: {'username':username,'email':email,'password':password,'password_confirm':password_confirm,'location':location,'about':about},
          beforeSend:function(){
          $('.ajax-loading').show();
         // $(_starter).attr("disabled","disabled");
          },
          success:function(json){
          $('.ajax-loading').hide();
          //$(_starter).attr("disabled","");
          }
  
  
      });
  }
  </code></pre>
  
  <p>really i'm going crazy :||</p>