Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 20:44, 6 March 2008.

How-to use systeminfo API in WRT widgets

From Forum Nokia Wiki


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


HTML

To enable system info API in widgets it needs to be embedded in the document since it is implemented as a netscape scriptable plug-in.

<embed type="application/x-systeminfo-widget" hidden="yes"></embed>

HTML example

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <script type="text/javascript" src="api.js" />
 <body onload="testapi()">
  <embed type="application/x-systeminfo-widget" hidden="yes"></embed>
</body>
</html>

JavaScript

function testapi() 
  var sysinfo = document.embeds[0];
  sysinfo.beep(5000, 900);
}
Related Discussions
Thread Thread Starter Forum Replies Last Post
Different between GPRS and WLAN john_c_ye Wired and Wireless interfaces 4 2007-06-09 05:22
Ped - in-phone programmers editor y.a.k Python 169 Yesterday 12:02
I have matlab j2me version hpienergy Mobile Java General 1 2006-03-17 19:59
How to close a Widget programmatically? jappit Widgets and Widsets 2 2008-04-16 16:02
XMLSocket to localhost problem MatBru Flash Lite on Nokia Devices 17 2008-03-14 21:03
 
Powered by MediaWiki