Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery mobile navbar isn't going active
    primarykey
    data
    text
    <p>Im working on a highly dynamic app. Due to how much stuff gets pushed around, I created a template to load all my actual content into:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;?php echo $head ?&gt; &lt;body&gt; &lt;?php if ($pagetype = 1) { $segment = 1 ;} else { $segment = 2; } ?&gt; &lt;div data-role="page" data-add-back-btn="true" id="&lt;?php echo $this-&gt;uri-&gt;segment($segment)?&gt;"&gt; &lt;div data-id="pageheader" data-role="header" data-add-back-btn="true" data-position="fixed"&gt; &lt;?php echo $header ?&gt; &lt;/div&gt; &lt;div data-role="content"&gt; &lt;?php echo $scripts ?&gt; &lt;?php echo $notification_list ?&gt; &lt;?php echo $content ?&gt; &lt;/div&gt; &lt;div data-role="panel" id="navpanel" data-position="left" data-display="push" data-position-fixed="true" data-dismissible="true" data-theme="a"&gt; &lt;?php echo $nav ?&gt; &lt;/div&gt; &lt;div data-role="footer" data-id="footer" data-position="fixed"&gt; &lt;?php echo $footer ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Now, the problem is in the <code>footer</code> where <code>$footer</code> loads my navbar:</p> <pre><code>&lt;div data-role="navbar"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="&lt;?php echo base_url()?&gt;structures/info/&lt;?php echo $str_info['str_id'] ?&gt;" data-icon="info" &gt;Info&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="&lt;?php echo base_url()?&gt;structures/upgrade/&lt;?php echo $str_info['str_id'] ?&gt;" data-icon="gear" &gt;Upgrade&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="&lt;?php echo base_url()?&gt;structures/recruit/&lt;?php echo $str_info['str_id'] ?&gt;" data-icon="refresh" "&gt;Recruit&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" data-icon="gear" &gt;City&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" data-icon="gear" &gt;Military&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>Is there any easily viewable reason as to why the navbar isn't functioning at all? The links work, but they never go active unless i specify it manually.. </p> <p><code>&lt;?php if ($pagetype = 1) { $segment = 1 ;} else { $segment = 2; } ?&gt;</code> was just a way to play around with the page name. </p>
    singulars
    1. This table or related slice is empty.
    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.
 

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