You Are Here:

Community: Wiki

This page was last modified on 8 July 2009, at 15:21.

Bug in WRT when using widget.openURL in emulator

From Forum Nokia Wiki

ID Known issue. Documented in SDK's release notes. Creation Date Dec 11, 2007
Platform S60 3rd Edition FP2 Beta Devices emulator
Category Web Runtime

Description

A widget that calls widget.openURL crashes the web run-time, when running in the FP2 emulator.

This is also documented in the release notes.

Actually I noticed that you can't have a browser instance and widget instance running at the same time on the emulator. Regardless of the order in which they are launched the 2nd to start will fail.

Sample code that reproduces the problem:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
 
<head>
<title>openURL bug</title>
 
<script type="text/javascript">
function handleOnload() {
widget.openURL('http://www.yahoo.com');
}
</script>
 
</head>
 
<body onload="handleOnload();">
 
<p> This will try to open an URL </p>
 
 
</body>
</html>

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia