title: why form submit more than one time with one time press enter key?
body: <p>I am a developer but I am facing a problem with form submissions with ajax request. I am developing a post comment system in which many posts are displayed on a page wall. We can comment on any post. I have implemented pagination on wall post in which onscroll post is loaded dynamically.</p>
  
  <p>When posts are loaded dynamically, if any one wants to comment on these post, the comment is being submitted generally more than once.</p>
  
  <p>Why is the comment form being submit more than once when I press enter only one time?</p>
  
  <p>My form ajax script file, named wallPartial.js:</p>
  
  <pre><code>if(I != "" &amp;&amp; supper_comment_text != "")
      {
          $.ajax({
              type:"GET",
              url: siteUrl+"waller/saveSupperCommentCL",
              cache: false ,
              async : false ,
              crossDomain: false,
              data: {'post_id' : I, 'supper_comment_text' : supper_comment_text},
              dataType: "json",
              success: function(ksb)
              { 
                 if(ksb.status=="Success")
                  { console.log('my message-1'); 
                      $.ajax({
                             type:"GET",
                             url: siteUrl+"waller/dynRefreshSupperCommentsCL",
                             data: {'post_id' : I},
                             contentType : "application/x-www-form-urlencoded; charset=UTF-8",
                             success: function(ksb_comments_details)
                             {
                                 $('#supper-comment-editor'+I).val('');
                                 $('li').remove('#UFIRow-CH'+I);
                                 $('#supper-comment-li'+I).before(ksb_comments_details);
                                 $('#UFIRow-CommetedH'+I).hide();
                             }
                          });
                  }
                  else
                  {
                      alert(ksb.msg);
                  }
  
              }
          });
      }
      return false;
  </code></pre>
  
  <p>I want to confirm one more this that above script is being loaded many times by wall pagination and wall pagination code is -</p>
  
  <pre><code>$(document).ready(function(){
  
      function last_post_funtion() 
      { 
         var baseUrl = $('#baseUrl').val();
         var siteUrl = $('#siteUrl').val();
         var act="get";
         var ID=$(".postHolder:last").attr("id");
  
          $.ajax({
                 type:   'POST',
                 async:   false ,
                 url :   siteUrl+'pagination/load_wall_paginationCL',
                 data:   { 'action':act, 'last_post_id':ID },
                 success: function(data) {
                                          if (data != "") {
                                          $(".postHolder:last").after(data);  
                                          if(window.foo == false){
                                          $.getScript(baseUrl+"/js/wallPartial.js", function(data, textStatus, jqxhr){
                                          console.log('Script loaded');
                                          window.foo = false;
                                                                                                                     });
                                                                  }
                                          }
                                          }
                 });
  
      };  
  
      $(window).scroll(function(){
          if  ($(window).scrollTop() == $(document).height() - $(window).height()){
             last_post_funtion();
          }
      });         
  });
  </code></pre>