1 / 35

Pengantar Teknologi Mobile 7

Antonius Rachmat C, S.Kom. Pengantar Teknologi Mobile 7. Wireless Markup Language. WML (Wireless Markup Language) ‏. Bahasa berbasis tag: Manajemen Layar (text, image) ‏ Input Data (text, selection lists, dll.) ‏ Dukungan Hyperlink & navigasi Didasarkan pada XML Berekstensi .wml.

Télécharger la présentation

Pengantar Teknologi Mobile 7

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Antonius Rachmat C, S.Kom Pengantar Teknologi Mobile 7 Wireless Markup Language

  2. WML (Wireless Markup Language)‏ • Bahasa berbasis tag: • Manajemen Layar (text, image)‏ • Input Data (text, selection lists, dll.)‏ • Dukungan Hyperlink & navigasi • Didasarkan pada XML • Berekstensi .wml

  3. WML (2)‏ • Card dan Deck • Dokumen berisi beberapa card • Interaksi user dibagi dalam card • Navigasi eksplisit antar card • deck sama seperti halaman HTML, yaitu unit pengiriman content • Manajemen event, variabel dan state • Ketika halaman WML diakses dari mobile phone, semua card didownload dari WAP server. • Semua card harus berisi • Prolog dokumen : <?xml version = “1.0”?> • Document type definition (DTD)‏ • Elemen <WML>

  4. WML Structure

  5. Contoh WML

  6. Tag Dasar • <wml> </wml> mendefinisikan awal dan akhir dari deck, seperti pada <html></html> • <card> </card> mendefinisikan awal dan akhir dari card • content type dari teks WML adalah text/vnd.wap.wml • Kita dapat menciptakan sebuah file WML yang terbentuk dengan mengirimkan content type tersebut di atas dari server script Anda.

  7. Card

  8. Contoh WML (teks)‏

  9. Contoh WML (teks)‏

  10. Contoh WML (teks)‏

  11. Teks

  12. Contoh WML (format teks)‏

  13. Special Character

  14. Contoh WML (table)‏

  15. Links • Digunakan untuk menghubungkan antar dokumen, atau dalam satu dokumen • Sintaks: • <a href=“[namadokumen]”>[teks]</a> • Dalam satu dokumen: • Menggunakan tanda # • <a href=“#[namaanchor]>[teks]</a>

  16. Links Digunakan untuk menghubungkan antar dokumen

  17. The accesskey attribute programs a key on the keypad that can be used to select the link. The value of the title attribute will label the soft key on the phone that will activate the link. Link to mobile.sports.com. 1 <?xml version="1.0"?>2 <!DOCTYPE wml PUBLIC"-//WAPFORUM//DTD 3 WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd">4 5 <!-- Fig. 13.7: fig13_7.wml -->6 <!-- Using Links -->7 8 <wml>9 <card>10 <p>11 Search Engines:<br />12 13 <!-- create links -->14 <a accesskey = "1" href = "http://mobile.sports.com"15title = "Sports">16Sports</a><br /> 17 <a accesskey = “2" 18href = “http://info.wapjag.com/aliens"18title = "SciFi">SciFi</a><br /> 20 </p>21 </card> 22</wml>

  18. Image • Menyisipkan image atau local icon aplikasi dalam tampilan teks • 1-bit BMP format, bernama WBMP • Gunakan konverter: WBMP Converter • Image diabaikan oleh piranti non bitmap • Cek HTTP_ACCEPT untuk MIME “image/bmp” • Tag: <img src=”[sumber]” alt=”[teks]”/>

  19. Image

  20. Input type (teks)

  21. Input type (select)

  22. Input (select multiple)

  23. WML task • Task <go> menyatakan tindakan pindah ke card baru • Task <prev> menyatakan tindakan kembali ke card sebelumnya • Task <refresh> memperbarui beberapa variabel card tertentu • Jika beberapa variabel sedang diperlihatkan pada layar, task ini juga meperbarui layar • Task <noop> mengatakan tidak ada yang perlu dikerjakan

  24. Go task

  25. Prev task

  26. Refresh task

  27. Noop task

  28. Contoh Variabel

  29. Template • Mendefinisikan tindakan dan event untuk semua card dalam sebuah deck • Selalu ada tampilan yang sama untuk beberapa card

  30. Skenario

  31. Template

  32. Skenario

  33. Template

  34. Bersambung

More Related