Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery mobile fixed navbar toolbar
    primarykey
    data
    text
    <p>I'm new to web development, I'm trying to create a static footer navbar that won't disappear with scrolling. I tried many examples here on stackoverflow but none of them work for me. The footer just disappears after i start scrolling. here is my full code:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;jQueryMoblie&lt;/title&gt; &lt;meta http-equiv="content-type" content="text/html; charset=utf-8"&gt; &lt;link rel="stylesheet"href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css"/&gt; &lt;script src="http://code.jquery.com/jquery-1.5.2.min.js"&gt;&lt;/script&gt; &lt;script src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function(){ $.("[data-role=footer]").setTouchToggleEnabled(false); $.mobile.page.prototype.options.backBtnText = "indietro"; $('a.item').click(function(){ var id = $(this).attr('id'); $.mobile.changePage({ url: "result.php", type: "get", data: "id="+id },"slide"); return false; }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div data-role="page" id="lista"&gt; &lt;div data-role="header"&gt; &lt;h1&gt;Lista &lt;/h1&gt; &lt;/div&gt; &lt;div data-role="content"&gt; &lt;ul data-role="listview" data-theme="d"&gt; &lt;?php $type= ""; $type = $_REQUEST['type']; include_once 'resultList.class.php'; $author-&gt;showList($type); ?&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div data-role="footer" data-position="fixed"&gt; &lt;div data-role="navbar"data-position="fixed" data-tap-toggle="false"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;One&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Two&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Three&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    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.
 

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