Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Revision as of 08:15, 24 June 2011 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How-to use links and launch the browser from a WRT widget

From Wiki
Jump to: navigation, search

Article Metadata
Platform(s): S60
Platform Security
Capabilities: )
Keywords: Browser URI Scheme, Browser Protocol
Created: forum-mrkt (03 Oct 2007)
Last edited: hamishwillee (24 Jun 2011)

How to use links in S60 WRT Widgets

Best way to use links within S60 WRT widgets is

<a href="javascript:widget.openURL('')">Open My Site</a>

instead of

<a href="">Open My Site</a>

The issue with the link is that if a widget's content contains a link to open an URI from the Internet, the new HTML page will be loaded to replace the widget's main HTML page. After this, there is no way to get back to the widget main page. In other words, this means that open a new HTML page within a widget with a normal tag such as shown below will decrease the end user experience of widgets.

<a href="">Open Yahoo</a>
This page was last modified on 24 June 2011, at 08:15.
32 page views in the last 30 days.