Namespaces

Variants
Actions

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 over the next few weeks. Thanks for all your past and future contributions.

How to open a URL in widget and avoid the bug of widget.openURL

From Wiki
Jump to: navigation, search
Article Metadata
Compatibility
Platform(s):
Symbian
Article
Created: fengforky@gmail.com (04 May 2008)
Last edited: hamishwillee (26 Jul 2012)

Compatibility: Web Runtime in S60 3rd Edition, Feature Pack 2

Bug

How to open a URL? It's recommended to use this one: widget.openURL(url); But it showed error message and couldn't work for the widget.openURL(url).

Solution

In a href tag, use this would be worked:

<div ><a href="http://www.ParentShack.com">ParentShack.com</a></div>

If you want to open a new url, it would be worked to use 'window.open(url, "NewWindow")' ? No. You should use this one:

self.location.href=url;

And don't forget to use menu.clear() to clear the menu before open a URL.

This page was last modified on 26 July 2012, at 02:35.
52 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×