html - Open same popup dialog on multiple pages Jquery Mobile 1.4.5 -


in app have popup come on page within app log user out if stay inactive long. had working in jqm 1.4.2 have upgraded 1.4.5 popup not appear on page has not had page refresh.

i calling popups using #id thought changing use class solve problem didn't.

code: (simplified show basic popup on each page)

popup page included in files:

<div data-role='popup' class='class_popcountdown' data-theme='a' data-overlay-theme='a' data-dismissible='false' style='min-width: 300px;'> <div data-role='header' data-theme='a'>     <h1>time out</h1> </div> <div data-role='main' class='ui-content'>     <p>         popup test         </p>     <a href="#" class="ui-btn" data-rel="back">cancel</a> </div> 

<script> function displaypopuptest() {         $(".class_popcountdown").popup("open");  }; </script> 

for example i'm trying open popup using on each page:

<a href="#" onclick="displaypopuptest();" >open popup</a> 

so... page 1 - click link popup opens - change page - page 2 (onwards) - click link popup not open can see code executing in console.

any ideas on how fix this? thanks

may issue missed out data-rel ,

<a data-rel="popup" href="#id" onclick="displaypopuptest();" >open popup</a> 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -