JQuery Mobile popup with history=false autocloses -
i'm trying show popup popup disappears automatically, without history=false popup stays visible on closing popup browser action triggered
<div data-role="page" id="indexpage"> <div data-role="popup" data-history="false" id="apppopup">test popup</div> <script> $("#indexpage").on("pageshow", function () { $("#apppopup").popup("open"); }); </script> </div>
check happens here: http://jsfiddle.net/francisdb/thtfz/
any idea on how fix this?
working example: http://jsfiddle.net/gajotres/2el5r/
$("#indexpage").on("pageshow", function () { var popup = setinterval(function(){ $("#apppopup").popup("open"); clearinterval(popup); },1); });
webkit browsers hate popup open, setinterval needs used trigger it. same thing goes few other jquery mobile functionalities.
Comments
Post a Comment