Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

How to reload a page without noticing the effect using jquery mobile

jquery mobile

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1 mutago


    CC Devotee

  • Senior Member
  • PipPipPipPipPipPip
  • 478 posts

Posted 09 April 2014 - 06:47 AM

i want to create a clickable button to reload the page without noticing the reload effect in jquery mobile or is there any way to make refresh occur automatically....
I found this code online , here http://scottwb.com/b...-jquery-mobile/
function refreshPage() {
      allowSamePageTransition : true,
      transition              : 'none',
      showLoadMsg             : false,
      reloadPage              : true
i have tried onclick event but its no working.
any help please. 
All i want is to reload a page without my user noticing that this page is being reload whether manually or automatically
<input type="button" value="Reload" onClick="refreshPage()">Reload</button><br>


#2 BlackRabbit


    CodeCall Legend

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3871 posts

Posted 10 April 2014 - 02:56 AM

That code looks fine. Still, if you want to do it on your own, you can always buffer the page load into a hidden frame, and replace the fore-one with the hidden one once the new page version has been loaded in there.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download