Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

How-to use systeminfo API in WRT widgets

From Wiki
Jump to: navigation, search

Article Metadata
Platform(s): S60, WRT 1.0, Platform Services 1.0
Platform Security
Signing Required: Not required
Keywords: System Information API , sysinfo, WRT 1.0, Platform Services 1.0
Created: forum-mrkt (03 Oct 2007)
Last edited: hamishwillee (10 Oct 2012)

Defining 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

<script type="text/javascript" src="api.js" />
<body onload="testapi()">
<embed type="application/x-systeminfo-widget" hidden="yes"></embed>


  • Lets use the [void] sysinfo.beep(Int frequency, Int duration) api as an example : It produces a beep tone in a specified frequency for a specified duration.
function testapi() 
// First lets get the reference to the sysinfo object.
var sysinfo = document.embeds[0];
sysinfo.beep(5000, 900);
This page was last modified on 10 October 2012, at 06:03.
57 page views in the last 30 days.