Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I don't know if answering my own question is of good etiquetter, but i found the solution and I think it'd be handy being visible.</p> <p>I updated to jQuery 1.8.2 and jQuery mobile 1.2.0 and everything worked. An example that works is here:</p> <pre><code>&lt;!DOCTYPE HTML&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;EventApp&lt;/title&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"/&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.css" /&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/css/jquery.mobile.structure-1.2.0.min.css" /&gt; &lt;script type="text/javascript" charset="utf-8" src="js/core/cordova-2.1.0.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" charset="utf-8" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" charset="utf-8" src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready( function() { $('div.ui-page').live("swipeleft", function () { var nextpage = $(this).next('div[data-role="page"]'); if (nextpage.length &gt; 0) { $.mobile.changePage(nextpage, { transition: "slide", reverse: false }); } }); $('div.ui-page').live("swiperight", function () { var prevpage = $(this).prev('div[data-role="page"]'); if (prevpage.length &gt; 0) { $.mobile.changePage(prevpage, { transition: "slide", reverse: true }); } }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div data-role="page"&gt; &lt;div data-role="header"&gt; &lt;h2 class="ui-title"&gt;Page one&lt;/h2&gt; &lt;/div&gt; &lt;div data-role="content"&gt; You are in page one. &lt;/div&gt; &lt;div data-role="footer" data-id="foo1" data-position="fixed"&gt; &lt;div data-role="navbar"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="index.html" data-icon="home"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="b.html" data-icon="info"&gt;Info&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" data-icon="gear"&gt;Settings&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;&lt;!-- /navbar --&gt; &lt;/div&gt;&lt;!-- /footer --&gt; &lt;/div&gt; &lt;div data-role="page"&gt; &lt;div data-role="header"&gt; &lt;h2 class="ui-title"&gt;Page two&lt;/h2&gt; &lt;/div&gt; &lt;div data-role="content"&gt; You are in page two. &lt;/div&gt; &lt;div data-role="footer" data-id="foo1" data-position="fixed"&gt; &lt;div data-role="navbar"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="index.html" data-icon="home"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="b.html" data-icon="info"&gt;Info&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" data-icon="gear"&gt;Settings&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;&lt;!-- /navbar --&gt; &lt;/div&gt;&lt;!-- /footer --&gt; &lt;/div&gt; &lt;div data-role="page"&gt; &lt;div data-role="header"&gt; &lt;h2 class="ui-title"&gt;Page three&lt;/h2&gt; &lt;/div&gt; &lt;div data-role="content"&gt; You are in page three. &lt;/div&gt; &lt;div data-role="footer" data-id="foo1" data-position="fixed"&gt; &lt;div data-role="navbar"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="index.html" data-icon="home"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="b.html" data-icon="info"&gt;Info&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" data-icon="gear"&gt;Settings&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;&lt;!-- /navbar --&gt; &lt;/div&gt;&lt;!-- /footer --&gt; &lt;/div&gt; &lt;div data-role="page"&gt; &lt;div data-role="header"&gt; &lt;h2 class="ui-title"&gt;The map&lt;/h2&gt; &lt;/div&gt; &lt;div data-role="content"&gt; &lt;div id="map_canvas"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div data-role="footer" data-id="foo1" data-position="fixed"&gt; &lt;div data-role="navbar"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="index.html" data-icon="home"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="b.html" data-icon="info"&gt;Info&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" data-icon="gear"&gt;Settings&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;&lt;!-- /navbar --&gt; &lt;/div&gt;&lt;!-- /footer --&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p></p> <p>And if you want <a href="http://jsfiddle.net/jontxu/fjNYd/" rel="nofollow">the JsFiddle is here</a></p>
    singulars
    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.
 

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