QNimate

  • CoursesVideos
  • WP PremiumPlugins
  • DemosLab
  • Home
  • QIdea
  • QTrack
Home Carbon Ads Phonegap Refresh Page

Phonegap Refresh Page

Sometimes its necessary to refresh the current page in Phonegap app. There are basically two ways to refresh currently executing page

  • window.location.reload();
  • window.location = "filename.html";

In case you are using JQuery Mobile and you want to refresh the current page(i.e., current view) then use this code

jQuery.mobile.changePage(window.location.href, {
        allowSamePageTransition: true,
        transition: 'none',
        reloadPage: true
    });

Remember that refreshing a page removes all dynamically added content of the page.

Nov 2, 2014Narayan Prusty
npm Tutorial For Non Node.js DevelopersFind, Create or Change Facebook Page URL
Comments: 1
  1. Isac Ferreira
    6 years ago

    Thanks a lot! It was a great help!

    ReplyCancel

Leave a Reply to Isac Ferreira Cancel reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

Narayan Prusty

I am a software engineer specialising in Blockchain, DevOps and Go/JavaScript. This is my personal blog where I write about things that I learn and feel interesting to share.

8 years ago 1 Comment Cordova
Share this
0
GooglePlus
0
Facebook
0
Twitter
0
Linkedin
Related Articles
  • Intercepting Android Back Button In Intel XDK
  • Multiple Pages In Phonegap
  • Disable Text Selection in Phonegap
  • Display Loading Indicator In Status Bar using Intel XDK
  • Difference between Set and WeakSet in JavaScript
Our Sponsor
My Books

2014 - 2015 © QNimate
All tutorials MIT license