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 13:02, 8 November 2007.

Como usar a API sysinfo com Widgets WRT

From Forum Nokia Wiki

Compatibilidade: Web Run-Time em S60 3rd Edition, Feature Pack 2

HTML

Para habilitar o uso da API SysInfo é necessário embarcá-la (embed) no documento HTML já que a mesma é implementada como um plugin do browser.

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

Exemplo em HTML

<!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
No me detecta los cambios el movil dimaar Foro en Español (Spanish Forum) 0 2007-11-19 09:54
Problema al cargar librerias dimaar Foro en Español (Spanish Forum) 5 2007-05-18 18:04
Welcome emulators WRT Widget Development 0 2007-06-26 17:05
Nokia N75 -Problema Configuracion VOIP- atila696 Foro en Español (Spanish Forum) 1 2008-06-22 11:47
What is the simplest way to get the icon on the phone? statoy General Discussion 5 2008-06-25 04:22
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX