This page was last modified 12:23, 6 June 2008.
Web Runtime WidgetsでSysteminfo APIを使用する方法
From Forum Nokia Wiki
原文(英語): How-to use systeminfo API in WRT widgets
対象となるバージョン: Web Runtime in S60 3rd Edition, Feature Pack 2
HTML
WidgetでSysteminfo APIを使用可能にするためには、使用するドキュメントに下記記述を埋め込む必要があります。プラグインとして実装されているためです。
<embed type="application/x-systeminfo-widget" hidden="yes"></embed>
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 |
| Ensymble problem | adenbeckitt | Python | 25 | 2008-04-17 21:21 |
| Why createImage(x, y) takes so small memory? | Creator3D | Mobile Java Media (Graphics & Sounds) | 4 | 2005-03-22 16:07 |
| Remove runtime generated files in update | kdurga | General Symbian C++ | 4 | 2008-07-03 14:02 |
| runtime error in s60 sdk, 2nd edition, fp3 | cstommijx | Mobile Java Tools & SDKs | 4 | 2006-10-27 04:00 |
| problem with N80 | abolfoooud | Mobile Java General | 6 | 2006-06-16 15:25 |
