×
Namespaces

Variants
Actions

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

From Nokia Developer 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.
35 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.

×