Jquery Mobile 1.2 Popup Question
I want to open a popup window when a given page loads. I have tried the following code?:
- <script type="text/javascript" charset="utf-8">
- $("#testView").live('pageinit',function() {
- $('#popupBasic').popup("open");
- });
- </script>
- <div id="popupBasic" data-role="popup" data-theme="a">
- <p>Your changes were successfully saved.<p>
- </div>
I get the following error when the page loads "activePage is undefined". The error is located on line 7109 "currentIsDialog = activePage.is( ".ui-dialog" );" in the jquery.mobile.1.2.js.
What am I doing wrong?
Any help would be appreciated.
Thanks,
Marty
activePage is undefined
"