Jquery Mobile 1.2 Popup Question

Jquery Mobile 1.2 Popup Question

I want to open a popup window when a given page loads.  I have tried the following code?:

  1. <script type="text/javascript" charset="utf-8">
  2. $("#testView").live('pageinit',function() {
  3.     $('#popupBasic').popup("open");
  4. });
  5. </script>
  6. <div id="popupBasic" data-role="popup" data-theme="a">
  7.     <p>Your changes were successfully saved.<p>
  8. </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
"