Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8689607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:41:23+00:00 2026-06-12T23:41:23+00:00

I am working on multiple HTML page phoneGap application and i want to implement

  • 0

I am working on multiple HTML page phoneGap application and i want to implement a navigation bar.

I am using the following code for phoneGap navigation bar implementation:

In index.html, I have defined navigation bar like this:

function onDeviceReady() {
  plugins.navigationBar.init();

  // or .create("BlackOpaque") to apply a certain style
  plugins.navigationBar.create("BlackOpaque"); 

  plugins.navigationBar.setTitle("Home");
  plugins.navigationBar.hideLeftButton();
  plugins.navigationBar.hideRightButton();
  plugins.navigationBar.show();
}

When i run app, it creates a nav bar at top of index page with title labelled as HOME, without left or right navBarButton as I don’t need it in home page.

But when I go to next HTML page xyz.html by clicking on a button, the navBar show same behaviour: i.e same Title without left and write button.

But I want it to change the title for the currently loaded page and also insert leftNavBarButton label as back so that I can also go back to previous page.

But it is not happening. I have also tried to write a script in xyz.html page that should change its title and put leftNavBarButton as back but not working.

Its static throughout the app with same title and i am unable to go back to previous page. I want its behaviour to be global which changes with every page and maintain the state of previous pages as well! How can i do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:41:24+00:00Added an answer on June 12, 2026 at 11:41 pm

    If you’re using a single-page template (= 1 jQuery Mobile page per HTML file), you have to include your JS code in every HTML files.

    What you can do is to put all your custom JS code inside a JS file and import it in every HTML pages you have. Also, import any other JS lib you’ll use in every pages.

    Ex:

    <script src="./js/navigationbar.js"</script>
    <script src="./js/myjs.js"></script>
    ...
    ...
    

    Another solution would be to force the refresh of the pages when navigating to them.

    In this case, you don’t have to import all your JS code in every pages, and for each HTML file, you can import the JS files which are required for this given file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi i am using the following code to load a part of page dynamically
Encoding using UTF-8. ( Multiple languages in one HTML page ). What are the
Using MooTools Request.HTML, I have my Request call working perfectly, updating my page element
Working on an AJAX website (HTML,CSS,JavaScript, AJAX, PHP, MySQL). I have multiple javascript functions
I'm working with multiple images that need to be compressed using the DXT/S3TC format
I am using a html page which has many tooltips. each tooltip has a
i want to post dynamically generated multiple text box using php by foreach loop.
I have multiple tables on my page that contain a checkbox. Immediately following the
I am using this plugin: http://jquery-ui.googlecode.com/svn/branches/labs/selectmenu/index.html (dropdown style) And it is working well but
I have multiple jquery comboboxes on the same page and I want to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.