Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<link rel="stylesheet" href=""/>
<script src=""></script>
<script src=""></script>
$(document).on('pageinit', '#home', function () {
// code
var _menuLoaded = false;
$('#menuPanel').load('menu.html', function () {
_menuLoaded = true;
$("#menuPanel").on("panelopen", function (event, ui) {
if (!_menuLoaded) {
<div data-role="page" data-theme="c" id="home">
<div data-role="panel" id="menuPanel" data-display="reveal" data-dismissible="false">
<div data-role="header">
Left Panel - Dynamic Listview
<div data-role="content">
Example using <a href="" target="_blank"> $.load() </a> to build listview inside jQM Panel<br/>
<a href="#menuPanel" data-role="button" data-inline="true">Show left panel</a>
<div data-role="page" data-theme="c" id="page2">
<div data-role="header">
<div data-role="content">
I am page2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.