Hi,
I am just starting with JQM and am trying to have a basic sliding panel work but as soon as I add the panel to the code (see here below), I obtain the following error "cannot read property 'options' of undefined" and the page does not display at all (the loading icon is the only thing I get).
Could you please tell me what's going wrong?
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <title></title>
- <link href="/mobile/css/jquery.mobile-1.3.1.min.css" rel="stylesheet" type="text/css" />
- <script src="/mobile/script/jquery-2.0.2.min.js" type="text/javascript"></script>
- <script src="/mobile/script/jquery.mobile-1.3.1.min.js" type="text/javascript"></script>
- </head>
- <body>
- <!-- Page! -->
- <div data-role="page" id="page1">
- <!-- panel -->
- <div data-role="panel" id="myPanel" data-position-fixed="true" >
- <p>This is my panel</p>
- </div>
- <div data-role="content">
- <div data-role="navbar" data-iconpos="left">
- <ul>
- <li>
- <a href="#myPanel" data-transition="fade" data-theme="b" data-icon="grid">
- </a>
- </li>
- <li>
- <a href="#page2" data-transition="fade" data-theme="" data-icon="info">
- </a>
- </li>
- </ul>
- </div>
- <div style=" text-align:center">
- <img style="width: 288px; height: 100px" src="/img/banner/cl2u_logo_PayPal.png">
- </div>
- <ul data-role="listview" data-divider-theme="b" data-inset="true">
- <li data-role="list-divider" role="heading">
- What do you want to do?
- </li>
- <li data-theme="c">
- <a href="#page3" data-transition="flip">
- <h1>Option 1</h1>
- <p>I want to do this</p>
- <span class="ui-li-count">
- 256
- </span>
- </a>
- </li>
- <li data-theme="c">
- <a href="#page4" data-transition="flip">
- <h1>Option 2</h1>
- <p>I want to do that</p>
- <span class="ui-li-count">
- 1589
- </span>
- </a>
- </li>
- </ul>
- <a data-role="button" href="#page5" data-icon="arrow-r" data-iconpos="right">
- Or even this...
- </a>
- </div>
- </div>
-
- <div data-role="page" id="page2">Page 2</div>
- <div data-role="page" id="page3">Page 3</div>
- <div data-role="page" id="page4">Page 4</div>
- <div data-role="page" id="page5">Page 5</div>
- </body>
- </html>