title: Using jquery in a facebook iframe application - GET vs. POST
body: <p>I was wondering what needs to be considered when using jquery in an facebook iframe app.</p>
  
  <p>I am trying to enable my grid to use paging without reloading the whole ASP.NET MVC page all the time.</p>
  
  <p>Are there any special actions that need to be done when using jquery inside an facebook iframe app?</p>
  
  <p><strong>EDIT:</strong> I am already using jquery-ui components like datepicker which work fine. But as soon as i want want to insert the result of an Controller action in an Html element i struggle.</p>
  
  <p><strong>EDIT2:</strong> It seems that jquery functions using the POST protocol work fine but not when using the GET protocol.</p>
  
  <p><strong>Sample call:</strong></p>
  
  <p>Works:</p>
  
  <pre><code>       $("#element").live("click", function () {
     $.ajax(  
      {  
          type: "POST",  
          url: "&lt;%=Url.Action("Action","Controller") %&gt;",  
            parameters: {  page: 2  },
          success: function(result) {  
              $("#element2").html(result); 
          }  
      });  
  
         return false;
     });
  </code></pre>
  
  <p>Does not work:</p>
  
  <pre><code>       $("#element").live("click", function () {
     $.ajax(  
      {  
          type: "GET",  
          url: "&lt;%=Url.Action("Action","Controller") %&gt;",  
            parameters: {  page: 2  },
          success: function(result) {  
              $("#element2").html(result); 
          }  
      });  
  
         return false;
     });
  </code></pre>