I am trying to make a form popup with phonegap and I am using jquery mobile 1.1.0.
I took the code from the docs (
http://jquerymobile.com/branches/popup-widget/docs/pages/popup/index.html#&ui-state=dialog) which looks like this:
<div data-role="popup" id="popupLogin" data-overlay-theme="b" data-theme="a" class="ui-corner-all">
<form>
<div style="padding:10px 20px;">
<h3>Please sign in</h3>
<label for="un" class="ui-hidden-accessible">Username:</label>
<input type="text" name="user" id="un" value="" placeholder="username" data-theme="a" />
<label for="pw" class="ui-hidden-accessible">Password:</label>
<input type="password" name="pw" id="pass" value="" placeholder="password" data-theme="a" />
<button type="submit" data-theme="b">Sign in</button>
</div>
</form>
</div>
The docs-page (see link above) doesn't show the popup when the page is opened, I have to click the 'form'-button to see the popup dialog. However when I put the code above in my content-div the contents of my popup are shown when I run the Phonegap app. I prefer not to show the dialog, untill I open it through $('#popupLogin').popup(); (which is the suggested way to open the dialog programmatically).
What can I do to avoid that the popup is shown when the app starts?
Thank you in advance!