This page was last modified 15:53, 4 May 2008.
How to open a URL in widget and avoid the bug of widget.openURL
From Forum Nokia Wiki
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.
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Catching key events of a Text type | bercobeute | Python | 8 | 2006-04-21 17:34 |
| UI Issues | lynchem | Python | 12 | 2005-10-26 18:24 |
| Python for S60 1.3.19 released | jplauril | Python | 6 | 2007-03-22 11:58 |
| Carbide.c++ Developer 1.1 - the missing features | jimgilmour1 | Tools and SDK Feedback | 15 | 2006-09-29 15:22 |
| widgets开发中,有什么方法可以取得手机屏幕大小 | wudawei | Web Technologies and Multimedia Content- Web 技术和多媒体内容 | 2 | 2008-04-08 09:54 |
