title: jquery post multiple submit errors
body: <p>i have a big problem , im trying to build a website around the <code>one page template system</code> so hear is how it works..... a user clicks a link: <code>&lt;a href="#" id="&lt;? md5('....').'-link-stay' ?&gt;"&gt;.....&lt;/a&gt;</code> but the problem is i have more then 100 php generated links on one page that is attached to a listener and for some strange reason, every time a link gets clicked, and a user returns back to the main page it doubles the request....
  in other words : a user click links.... go to a page ..... and he see's a ton of links.... the user clicks a link..... go to a page. but if a user goes back the ajax call doubles????
  ex. 1 post , ... 2 post ..... 4 post.... 8 post ..... 16 post..... 32 post ...... 64 post.....
  im trying to debug with chrome, and it shows how many post to the <code>network(HTTP Request)</code> that are made every time one has been called and it shows how many post being made and its doubling</p>
  
  <p>Html Markup :</p>
  
  <pre><code>    &lt;script&gt;
      // main menu
      $('header a').addClass('lvl1Links');
      // classifeds
      $('#9090 a').addClass('lvl1Links');
      //states - citys - cats ads
      $('#selectable a').addClass('lvl1Links');
      // re-install link management
      $(function(){
          $('.lvl1Links').click(function(event) {
              event.preventDefault();
              $('pload').html('&lt;img src="source/image/lbl.gif"&gt;');
              var page = $(this).attr('id');
              var huh = $('input:hidden').val();
              var data = 'pop='+huh+'&amp;page='+page;
              $.post('source/php/bots/authorize.php',data,function(data){
                      $('#pager_master_div').html(data).slideDown();
                      $('pload').html('');
                  });
          });
      });
      // speacial style on  certain input boxes
      $('input').addClass('input');
      $('#op').removeClass('input');
      $('#sp').removeClass('input');
      $('button').button();
      //$("#BUser_Home_Wrapper a .lvl1Links").removeClass("lvl1Links");
      &lt;/script&gt;&lt;div id="9090"&gt;&lt;ol id="selectable"&gt;&lt;li class="ui-state-default"&gt;
      &lt;div class="contr"&gt;&lt;a  href="#" id="d1457b72c3fb323a2671125aef3eab5d.class.Alabama:1"&gt;Alabama&lt;/a&gt;&lt;/div&gt;&lt;div class="citys"&gt;&lt;a href="#" id="d1457b72c3fb323a2671125aef3eab5d.class.Alabama:1.Birmingham:1"&gt;Birmingham&lt;/a&gt;&lt;br&gt;&lt;a href="#" id="d1457b72c3fb323a2671125aef3eab5d.class.Alabama:1.Montgomery:2"&gt;Montgomery&lt;/a&gt;&lt;br&gt;&lt;a href="#" id="d1457b72c3fb323a2671125aef3eab5d.class.Alabama:1.Mobile:3"&gt;Mobile&lt;/a&gt;&lt;br&gt;&lt;a href="#" id="d1457b72c3fb323a2671125aef3eab5d.class.Alabama:1.Huntsville:4"&gt;Huntsville&lt;/a&gt;&lt;br&gt;&lt;a href="#" id="d1457b72c3fb323a2671125aef3eab5d.class.Alabama:1.Tuscaloosa:5"&gt;Tuscaloosa&lt;/a&gt;&lt;br&gt;&lt;li class="ui-state-default"&gt;
      &lt;div class="contr"&gt;&lt;a  href="#" id="d1457b72c3fb323a2671125aef3eab5d.class.Alaska:2"&gt;Alaska&lt;/a&gt;&lt;/div&gt;&lt;div class="citys"&gt;&lt;a href="#" id="d1457b72c3fb323a2671125aef3eab5d.class.Alaska:2.Anchorage:6"&gt;Anchorage&lt;/a&gt;&lt;br&gt;&lt;a href="#" id="d1457b72c3fb323a2671125aef3eab5d.class.Alaska:2.Juneau:7"&gt;Juneau&lt;/a&gt;&lt;br&gt;&lt;a href="#" id="d1457b72c3fb323a2671125aef3eab5d.class.Alaska:2.Fairbanks:8"&gt;Fairbanks&lt;/a&gt;&lt;br&gt;&lt;a href="#" id="d1457b72c3fb323a2671125aef3eab5d.class.Alaska:2.Sitka:9"&gt;Sitka&lt;/a&gt;&lt;br&gt;&lt;a href="#" id="d1457b72c3fb323a2671125aef3eab5d.class.Alaska:2.Ketchikan:10"&gt;Ketchikan&lt;/a&gt;&lt;br&gt;&lt;/ol&gt;&lt;/div&gt;&lt;style&gt;
      .contr{
  
      }
      .citys{
          display:none;
          position:absolute;
          height:110px;
          width:100px;
          top:30px;
          left:-5%;
          right:-5%;
          z-index:100;
          background:#FFF;
          border-radius:5px;
          border:5px #0099FF solid;
          font-size:10px;
      }
      .cityz{
          display:none;
          position:absolute;
          height:200;
          width:100px;
          top:-100px;
          left:-5%;
          right:-5%;
          z-index:100;
          background:#FFF;
          border-radius:5px;
          border:5px #0099FF solid;
          font-size:10px;
      }
      .citys a{
      font-size:15px;     
      }
      .cityz a{
      font-size:15px;     
      }
      #selectable li a{
      font-size:14px;
      }
      #selectable li city a{
  
      }
      #selectable {
          list-style-type: none; margin: 0; padding: 0;  
      }
      #selectable li {
      margin:5px;
      position:relative;
      border-radius:10px;
      padding: 1px;
      float:left;
      width: 100px;
      height: 25px;
  
      text-align: center;
       }
      &lt;/style&gt;
      &lt;script&gt;
           $('.ui-state-default').mouseenter(function(e) {
                  $('.citys', this).slideDown(); // added this 
              }).mouseleave(function(e) {
                  $('.citys', this).toggle(); // added this 
              });
          // bttom rows
           $('.ui-state-default').mouseenter(function(e) {
                  $('.cityz', this).slideDown(); // added this 
              }).mouseleave(function(e) {
                  $('.cityz', this).toggle(); // added this 
              });
  
  
      &lt;/script&gt;
  
      &lt;results&gt;&lt;/results&gt;&lt;input type="hidden" id="fortknox" name="fortknox" value="c4ca4238a0b923820dcc509a6f75849b"&gt;&lt;results&gt;&lt;/results&gt;&lt;input type="hidden" id="fortknox" name="fortknox" value="c4ca4238a0b923820dcc509a6f75849b"&gt;
          &lt;script&gt;
          $('input').addClass('input');
  
          $('button').button();
  // click event for all links 
  $(function(){
      $('.lvl1Links').click(function(event) {
          event.preventDefault();
          $('pload').html('&lt;img src="source/image/lbl.gif"&gt;');
          var page = $(this).attr('id');
          var huh = $('input:hidden').val();
          var data = 'pop='+huh+'&amp;page='+page;
          $.post('source/php/bots/authorize.php',data,function(data){
                  $('#pager_master_div').html(data).slideDown();
                  $('pload').html('');
              });
      });
  }); 
  
  &lt;/script&gt;
  </code></pre>
  
  <p>php code:</p>
  
  <pre><code>&lt;?
  case 'class':
  require('functions/cats.php');
  classie($p);
  break;
  
  function classie($p){
      connect();
      $state = explode(':',$p[2]);
      $total = count($state);
      $s = md5('?').'.class.';
      $sid  = $state[1];
      $state = $state[0];
      echo "&lt;a href=\"#\" id=\"$s$state:$sid\"&gt;$state&lt;/a&gt;";
      echo "&lt;ol id=\"selectable\"&gt;";
      if(isset($p[3])){
          $city = explode(':',$p[3]); 
          $cid  = $city[1];
          $city = $city[0];
          echo " : &lt;a href=\"#\" id=\"$s$state:$sid.$city:$cid\"&gt;$city&lt;/a&gt;";
          $sqlca = mysql_query("SELECT * FROM `cats` WHERE `cityId`= ".$cid." ");
              while($rowsy = mysql_fetch_array($sqlca)){
          echo " : &lt;a href=\"#\" id=\"$s$state:$sid.".$city.":".$cid.".".$rowsy['name'].":".$rowsy['id']."\"&gt;".$rowsy['name']."&lt;/a&gt;";
              }
      }
  ?&gt;
  </code></pre>