title: jQuery mobile $(document).ready equivalent
body: <p>in ajax navigation pages, the classic "document ready" form for performing initialization javascript simply doesn't fire.</p>
  
  <p>What's the right way to execute some code in an ajax loaded page?</p>
  
  <p>(I mean, not my ajax... it's the jquery mobile page navigation system which brings me to that page)</p>
  
  <p>Ok, I did suspect something like that... thanks a lot =) But... it still doesn't work, here's my code:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
      &lt;title&gt;mypage&lt;/title&gt;
  
      &lt;link rel="stylesheet" href="jquery.mobile-1.0a4.min.css" /&gt;
      &lt;script type="text/javascript" src="jquery-1.5.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="jquery.mobile-1.0a4.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          $('div').live('pageshow',function(event, ui){
            alert('ciao');
          });
      &lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
      &lt;div data-role="page"&gt;
  
          &lt;div data-role="header" data-position="fixed"&gt;
              &lt;h1&gt;Shopping Cart&lt;/h1&gt;
          &lt;/div&gt;
  
          &lt;div data-role="content"&gt; asd
  
  
          &lt;/div&gt;
  
      &lt;/div&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>Do I need to specify the div id?</p>