Namespaces
Variants
Actions
Revision as of 02:34, 13 April 2011 by hamishwillee (Talk | contribs)

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

Jump to: navigation, search

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.

76 page views in the last 30 days.
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