javascript - how can i disable closing of jquery mobile popup -
i use jquery mobile build web application. when use 'jquery mobile signin popup' in here: http://jquerymobile.com/demos/1.3.0-rc.1/docs/demos/widgets/popup/
and customize signin popup preloaded , user can unable close it. static form in html. because without popup or disappered popup, user's cant signin , cant use services. how can that??
thank time here signup popup's source.
<a href="#popuplogin" data-rel="popup" data-position-to="window" data-role="button" data-inline="true" data-icon="check" data-theme="a" data-transition="pop">sign in</a> <div data-role="popup" id="popuplogin" 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="pass" id="pw" value="" placeholder="password" data-theme="a"> <button type="submit" data-theme="b" data-icon="check">sign in</button> </div> </form> </div>
you can use dismissible
attribute.
sets whether clicking outside popup or pressing escape while popup open close popup. option exposed data attribute: data-dismissible="false"
code:
<div data-role="popup" id="popuplogin" data-theme="a" class="ui-corner-all" data-dismissible="false">
docs: http://jquerymobile.com/demos/1.3.0-beta.1/docs/pages/popup/options.html#
Comments
Post a Comment