You Are Here:

Community: Wiki

This page was last modified on 8 November 2007, at 13:02.

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 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