title: JQuery Sometimes loads, sometimes not
body: <p>My main problem:</p>
  
  <p>1/ load page have autocomplete (A) - click load only, not Ctrol F5 or F5</p>
  
  <p>2/ sometimes autocomplete works, sometimes does not</p>
  
  <p>the error is below:
  <a href="http://i.stack.imgur.com/2lEoT.png" rel="nofollow">http://i.stack.imgur.com/2lEoT.png</a>
  [This is a capture image which "luckly" i take from firebug]</p>
  
  <p>Real testing on video youtube: <a href="https://youtu.be/2OsbelHapJk" rel="nofollow">https://youtu.be/2OsbelHapJk</a></p>
  
  <p>how to fix them, i have stacken for 3 days... please help !
  i have seen some thread like this, but no true answer...</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$("#txtSaveDTG").autocomplete({
          source: function (request, response) {
              var param2 = { Name: $('#txtSaveDTG').val() };
              $.ajax({
                  url: "../../UserControls/LoadDataService.asmx/AUTOGUI",
                  data: JSON.stringify(param2),
                  dataType: "json",
                  type: "POST",
                  contentType: "application/json; charset=utf-8",
                  dataFilter: function (data) { return data; },
                  success: function (data) {
  
                      if (data.d.length == 0) {
  
                          $('#txtSaveDTG').attr("placeholder", "Value is not found with '" + $('#txtSaveDTG').val() + "'");
                          $('#txtSaveDTG').val("");
                      } else {
                          response($.map(data.d, function (item) {
                              return {
                                  value: item["Name"]
                              }
                          }))
                      }
                  },
                  error: function (XMLHttpRequest, textStatus, errorThrown) {
                      alert(textStatus);
                  }
              });
          },
          minLength: 1
      });</code></pre>
  </div>
  </div>
  </p>