×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    1

    Exclamation Navigation between two HTML files inside a single project.

    Hello everyone
    My question is:: I am using Nokia Web Tools 2.3 version and i am designing an application.I want to know how can i navigate between two Html files that means one default file named as index.html and one file i have added suppose first.html.I want to navigate to and fro between these two pages on an click event of button but i am not able to do the same. Please help me as soon as possible.Thanks in advance.All the suggestions are welcome.

  2. #2
    Wiki Moderators
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,779

    Re: Navigation between two HTML files inside a single project.

    Quote Originally Posted by Ashish_gupta View Post
    I want to navigate to and fro between these two pages on an click event of button but i am not able to do the same. Please help me as soon as possible.Thanks in advance.All the suggestions are welcome.
    You can do it by providing a hyperlink on that button by using the <a> tag.

    Code:
    <a href="first.html">Your button goes here</a>
    However, note that this is not the officially recommended approach. If your web app is to contain multiple scenes, views, or pages you shouldn't create separate HTML pages and load them. If you do so, you may encounter rendering issues with any pages other than index.html.

    The correct approach is to place the HTML content for each view in its own container (such as a div) in the index.html file itself. Then to display a specific view the currently displaying view should be hidden and the required view shown using JavaScript code.
    Pankaj Nathani
    www.croozeus.com

Similar Threads

  1. Opening html files inside J2ME application
    By davidcmm in forum Mobile Java General
    Replies: 0
    Last Post: 2010-11-09, 02:18
  2. How to pack two sis files inside single installable file?
    By rohanwaugh in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 9
    Last Post: 2009-07-22, 06:42
  3. Flash inside HTML for a widget?????
    By rj12info in forum Symbian
    Replies: 7
    Last Post: 2009-07-09, 13:34
  4. HTML inside a MIDlet
    By HasithaRandika in forum Mobile Java General
    Replies: 4
    Last Post: 2009-02-17, 10:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •