Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think it should be what you're wanting:</p> <pre><code>&lt;div data-role="page" id="index"&gt; &lt;div data-role="panel" id="mypanel"&gt; &lt;a href="#" data-role="button" class="btnPages" data-idpage="index"&gt;Jump to index page&lt;/a&gt; &lt;a href="#" data-role="button" class="btnPages" data-idpage="second"&gt;Jump to second page&lt;/a&gt; &lt;a href="#" data-role="button" class="btnPages" data-idpage="third"&gt;Jump to third page&lt;/a&gt; &lt;/div&gt; &lt;div data-theme="a" data-role="header"&gt; &lt;h3 id="header-page"&gt; First Page &lt;/h3&gt; &lt;/div&gt; &lt;div data-role="content" id="content-page"&gt; &lt;a data-role="button" href="#mypanel"&gt;Open Pannel&lt;/a&gt; &lt;/div&gt; &lt;div data-theme="a" data-role="footer" data-position="fixed" id="footer-page"&gt; . &lt;/div&gt; &lt;/div&gt; &lt;div class="soHide" id="index"&gt; &lt;div data-theme="a" data-role="header"&gt; &lt;h3 id="header-index"&gt; First Page &lt;/h3&gt; &lt;/div&gt; &lt;div data-role="content" id="content-index"&gt; &lt;a data-role="button" href="#mypanel"&gt;Open Pannel&lt;/a&gt; &lt;/div&gt; &lt;div data-theme="a" data-role="footer" data-position="fixed" id="footer-index"&gt; . &lt;/div&gt; &lt;/div&gt; &lt;div class="soHide" id="second"&gt; &lt;div data-theme="a" data-role="header"&gt; &lt;h3 id="header-second"&gt; Second Page &lt;/h3&gt; &lt;/div&gt; &lt;div data-role="content" id="content-second"&gt; &lt;p&gt;this is a second page&lt;/p&gt; &lt;a data-role="button" href="#mypanel"&gt;Open Pannel again&lt;/a&gt; &lt;/div&gt; &lt;div data-theme="a" data-role="footer" data-position="fixed" id="footer-second"&gt; footer second page &lt;/div&gt; &lt;/div&gt; &lt;div class="soHide" id="third"&gt; &lt;div data-theme="a" data-role="header"&gt; &lt;h3 id="header-third"&gt;Third Page&lt;/h3&gt; &lt;/div&gt; &lt;div data-role="content" id="content-third"&gt; &lt;a data-role="button" id="open-panel"&gt;Open Pannel one more time&lt;/a&gt; &lt;p&gt;it's third!&lt;/p&gt; &lt;/div&gt; &lt;div data-theme="a" data-role="footer" data-position="fixed" id="footer-third"&gt; it's some third footer page &lt;/div&gt; &lt;/div&gt; </code></pre> <p>and this javascript:</p> <pre><code>$(document).on('click', '.btnPages', function(){ var page = $(this).attr('data-idpage'); var header = $("#header-"+page).html(); var content = $("#content-"+page).html(); var footer = $("#footer-"+page).html(); // apply $("#header-page").html(header).trigger('create'); $("#content-page").html(content).trigger('create'); $("#footer-page").html(footer).trigger('create'); }); </code></pre> <p>and this css:</p> <pre><code>.ui-panel-animate { transition: transform 1350ms ease 0s !important; } .soHide { display: none; } </code></pre> <p>and this functional example <a href="http://jsfiddle.net/wgbn/Hxy37/" rel="nofollow">http://jsfiddle.net/wgbn/Hxy37/</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload