title: ajax jquery - passing data with parameters
body: <p>I want to use <code>request.getParameter()</code> in my jsp page so I use some these code:</p>
  
  <pre><code>var ajax_call = function updateLocation(position){
  $.ajax({
      type: "post",
      async: true,
      url: "test1.jsp",    
      data: "lat=" + position.coords.latitude + "&amp;longg="+ position.coords.longitude ,
      success: function(msg){    
          alert("blahblah");
      }
  });
  }
  
  var interval = 1000 * 1;
  setInterval(ajax_call, interval);
  </code></pre>
  
  <p>I have received success alert but the <code>test1.jsp</code> page is not call yet. If I use</p>
  
  <pre><code>data: "lat=1&amp;longg=2" //for example
  </code></pre>
  
  <p>Everything runs correctly. Anyone know please!</p>