×
Namespaces

Variants
Actions
Revision as of 02:59, 8 May 2013 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Como usar a API sysinfo com Widgets WRT

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

Compatibilidade
Plataforma(s):
Symbian

Artigo
Criado por dcrocha em Dcrocha
Última alteração feita por hamishwillee em 08 May 2013

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);
}
This page was last modified on 8 May 2013, at 02:59.
91 page views in the last 30 days.