Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User rgmlkthh's Avatar
    Join Date
    May 2009
    Posts
    7
    hello everybody!

    i need help, i want to develop a widget application, and i want it have more than one html page,
    how can i open other html page from the index.html? i have used window.open function ,but it's not success. thank every body!!

  2. #2
    Registered User rgmlkthh's Avatar
    Join Date
    May 2009
    Posts
    7
    oh ,my god, it's esay. <a href='local file'>aa</a>

  3. #3
    Regular Contributor austin007's Avatar
    Join Date
    Mar 2008
    Posts
    133
    This is nice way

    you have problem first.... and after getting answer yourself, you provide it here!....

  4. #4
    Super Contributor RB_Sahu's Avatar
    Join Date
    Jan 2007
    Location
    Bhubaneswar, India
    Posts
    1,189
    It will be good if you write solution here so other person can get help.
    -------------------------------------
    Thanks & Regards
    Ram
    Symbian OS 9.2/9.3,S60 3rd FP1/FP2,Carbide.c++v2.0

  5. #5
    Nokia Developer Moderator isalento's Avatar
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    832
    It is good to note that when using <a href='local file' to switch pages you will lose window.widget -object after switching pages. However this seems to work with devices that use 7.1 browser (N97, N97-mini and some 3.2 devices).

    The recommended way is to use DOM manipulation and generate content on the fly.

    Br,
    Ilkka

  6. #6
    Registered User jzferreira's Avatar
    Join Date
    Sep 2008
    Location
    Manaus, Brazil
    Posts
    109
    Hi,

    WRT works just with one html. You should use several divs and manipulate the DOM with javascript (show and hide methods).
    Javier Zambrano Ferreira

  7. #7
    Registered User rgmlkthh's Avatar
    Join Date
    May 2009
    Posts
    7
    thanks everybody!

    i know widget suggest only use one html and use dom to creat other div. but my application is very big or diffculty, so one html cann't control ,and it's not good at update. so i want to use mult html.
    but i have new problem, when i click href link to another html. it always pop a dialog to show Terms of Service,widget need GPS and so on.....,oh,i don't need it ,how i can shield it???
    thank you!!!

  8. #8
    Nokia Developer Moderator isalento's Avatar
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    832
    You cannot hide the platform service access permission query. WRT widgets are designed to work with only one HTML page as jzferreira pointed out.
    Please check the links provided in this post as they describe what is needed to develop a basic widget.

    If your application is really big I would suggest that you split your Application logic (JavaScript) in multiple files and use Object oriented approach to JavaScript coding.

    -Ilkka

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved