title: $.ajax on jquery mobile
body: <p>$.ajax not works properly by using jquery mobile framework...</p>
  
  <p>it just let us downoad html file....</p>
  
  <p>if we want to call 'ActionMethod' then it not works:</p>
  
  <pre><code>$.ajax({
     url:'Home/CallMe',
     success: function(result) {
      alert(result);
     }  // edited
  });
  </code></pre>
  
  <p>It hangs the system...</p>
  
  <p>I'm using IPhone Emulator for testing....</p>
  
  <p>Can anyone let me know why above not works and why below works while using jquery mobile framework?</p>
  
  <p>$</p>
  
  <pre><code>.ajax({
         url:'htmlFile.htm',
         success: function(result) {
          alert(result);
        } // this line is edited later
  
      });
  </code></pre>
  
  <p>Edited:  <strong>One another thing I want to tell you is that I'm using ASP.NET MVC...</strong></p>
  
  <p><strong>Edited:</strong>
  A simplest example of action method that you can try is:</p>
  
  <pre><code>public JsonResult CallMe()
  {
     return Json("I'm your response");
  }
  </code></pre>
  
  <p>[HttpPost] can also be applied, if you want...</p>