Advertisement
joris

jqm

Apr 27th, 2013
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. $(document).on('click', "#secondPage",function () {    
  2.         $.mobile.changePage('second.html', {
  3.             dataUrl : "second.html",
  4.                 reloadPage : false,
  5.                 changeHash : true
  6.         });
  7. });
  8.  
  9. Above the commands I use to call the second page. And after the second page is called, I want to create a button to return to the main page (index.html)
  10. Once the button id="secondPage" then clicked the url will change like this one :
  11.  
  12. http://localhost/jqm/#second.html
  13.  
  14. Do I need to refresh the page to call back index.html?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement