title: How to cancel showing a page and show another page instead in Jquery Mobile?
body: <p>i'm building a mobile app with Jquery Mobile and i need to cancel showing a page and show another page instead, based in some rules.</p>
  
  <p>I have the following code:</p>
  
  <pre><code>$('#login').live("pagebeforeshow", function() {
      /*-&gt; Here i have some code where i decide 
      if i continue loading the page or load(changepage) another page instead.*/
  });
  </code></pre>
  
  <p>Thanks in advice for helping me.
  Should i better use "pagebeforecreate" instead of "pagebeforeshow" or what do you recommend?</p>