Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User neokrezz's Avatar
    Join Date
    Nov 2010
    Posts
    5
    Hi,
    i developing WRT widget that is display some links to web pages. if user click and go to some web page everything is OK. but, when we return(back) to Main home screen, on the place where should load my widget I see the loaded page. So widget do not return to its previose mode. its display loaded page... how to load always our widget on home screen?

    thanks in advance

  2. #2
    Registered User neokrezz's Avatar
    Join Date
    Nov 2010
    Posts
    5
    I think I found solution
    WRT widgets, unlike websites, can contain a single HTML page. This means that, if you want to
    implement different views or screens within a WRT widget, the only way to do it is by manipulating its
    DOM structure.
    Usually, there are 2 different approaches to this task:
    write all your Widget HTML structure statically, hiding and showing elements by using JavaScript
    and CSS
    ·
    write only the basic HTML structure statically, and then dynamically build, append and remove
    DOM elements by using JavaScript
    ·
    Usually, the 2 approaches are mixed within the same Widget.
    http://wiki.forum.nokia.com/index.ph...m_a_WRT_widget

  3. #3
    Regular Contributor wenz's Avatar
    Join Date
    May 2009
    Location
    sydney
    Posts
    117
    1, make sure you've enabled your miniview mode in plist file,
    2, implement a function like following,
    Code:
    function setMyLayout()
    {
    // window.inner Height for MiniViewis actually 91px
    if (window.innerHeight< 150) 
    {showMiniView();
    }
    else
     {
    showMainView();
    }}
    hope this helps.
    Nokia is back!

Similar Threads

  1. Self-updating home screen widget not possible?
    By bau420 in forum Symbian Web Runtime
    Replies: 6
    Last Post: 2009-07-30, 08:45
  2. Home Screen Widget Problem
    By quangtrung89 in forum Symbian Web Runtime
    Replies: 3
    Last Post: 2009-05-13, 15:54
  3. Home screen widget screen sizes guidance on N97
    By quangtrung89 in forum Symbian Web Runtime
    Replies: 1
    Last Post: 2009-05-08, 22:18
  4. Home screen widget screen sizes guidance on N97
    By pasi.hytonen@starcut.com in forum Symbian Web Runtime
    Replies: 2
    Last Post: 2009-04-16, 06:35
  5. will there be home screen widget for s60v3?
    By lizhengkun in forum Symbian Web Runtime
    Replies: 7
    Last Post: 2009-03-26, 14:06

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