title: JQUERY - get method not returning data
body: <p>I am new to jquery and building an app using phonegap and jquery mobile.I have to load the data from a page and prepare a nested collapsible list view and present it to the user.I have written code for everything except that i don't know how to get the data from the server.
  I am trying to use $.get method and in the callback of that method trying to prepare the collapsible list view from the returned server data.But the problem is this piece of code which returns the status as success but data as null</p>
  
  <pre><code>  &lt;body&gt;
  
   &lt;div data-role="page" id="pageone"&gt;
   &lt;div data-role="header"&gt;
    &lt;h1&gt;My Commodities&lt;/h1&gt;
   &lt;/div&gt;
  
   &lt;script&gt;
  
   $.get(" //URL to be called",function(data,status){
   alert("Data: " + data + "\nStatus: " + status);
   });
   &lt;/script&gt;
   &lt;/div&gt; 
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Image <a href="http://tinypic.com/r/fav6g1/8" rel="nofollow">http://tinypic.com/r/fav6g1/8</a></p>