-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Hi, Frequent, thanks for an awesome plugin, I'm integrating multiview into a project requiring a straightforward splitview with ability to data-switch (hide the menu). I don't have mid, but would like to integrate it, it's perfect for our project.
For the menu I have:
<div data-wrapper="true" data-role="page" data-switchable="true" data-scrollMode="true" />
<div data-role="panel" data-id="menu" data-panel="menu">
<div data-role="page" id="contents" data-show="first">
<div data-role="header" data-theme="b">
<h1>Contents</h1>
</div>
<div data-role="content" data-theme="c">
<ul data-role="listview">
<li><a href="#menu_page" data-panel="menu">Submenu</a></li>
</ul>
.
.
.
<div data-role="page" id="week11">
<div data-role="header" data-theme="b">
<h1>Submenu</h1>
</div>
<div data-role="content">
<ul data-role="listview">
<li><a data-panel="main" href="main1.html" data-icon="arrow-r" data-iconpos="right">A Page in the Main panel</a></li>
<li><a data-panel="main" href="main2.html" data-icon="arrow-r" data-iconpos="right">Another Main panel page</a></li>
</ul>
.
.
.
and for the main section
<div data-role="panel" data-id="main" data-panel="main">
<div data-role="page" id="main_first" data-show="first">
<div data-role="header" data-position="fixed" data-theme="b"> <a href="#" data-icon="home" data-iconpos="notext">Home</a>
<h1>Main</h1>
<div class="headWrapRight ui-btn-right">
<div data-role="controlgroup" data-type="horizontal" class="iconposSwitcher-div"></div>
</div>
</div>
<div data-role="content">
<p> this is the starting content section of the page</p>
</div>
</div>
</div>
The behavior I'm seeing is that it works initially, and then fails in desktop test in FF 14 on Win 7. I am seeing, both with my code, and the example code online, back buttons appearing on the left underneath the menu toggle buttons in the header of pages contained in the main panel. The pages loaded into the main panel by the submenu links in the menu panel are regular JQM pages containing one div with data-role="page" each.
Ideally, the main panel section will be navigable using a separate script-generated navigation (previously working fine), dropped into the local page header of external pages, but without a back button created for the main page. Adding data-add-back-btn="false" to the main pages has no effect on the back button created by the multiview js (named after the title of the page in teh prior history).
How can I turn off that navigation feature of a labeled back button in the main panel?
Also, main2.html navigated to from splitview.html#submenu shows main2.html loaded into the main panel. However, a browser refresh only shows me main2.html in the browser, the multiview wrapper container is gone.However, browser refresh with the original splitview page "splitview.html#submenu" brings up the proper submenu visible in the menu panel.
Is there a way to avoid browser refresh causing this problem of loading a file intended to appear inside the main panel?
Thanks for your help, Frequent, and any advice or direction you can give me on better using your powerful plug-in.