pengantar teknologi mobile 7

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

Upload: kirk-padilla

Post on 03-Jan-2016

72 views

Category:

Documents


5 download

DESCRIPTION

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. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Pengantar Teknologi Mobile 7

Pengantar Teknologi Mobile 7

Antonius Rachmat C, S.Kom

Wireless Markup Language

Page 2: Pengantar Teknologi Mobile 7

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

Page 3: Pengantar Teknologi Mobile 7

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>

Page 4: Pengantar Teknologi Mobile 7

WML Structure

Page 5: Pengantar Teknologi Mobile 7

Contoh WML

Page 6: Pengantar Teknologi Mobile 7

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.

Page 7: Pengantar Teknologi Mobile 7

Card

Page 8: Pengantar Teknologi Mobile 7

Contoh WML (teks)

Page 9: Pengantar Teknologi Mobile 7

Contoh WML (teks)

Page 10: Pengantar Teknologi Mobile 7

Contoh WML (teks)

Page 11: Pengantar Teknologi Mobile 7

Teks

Page 12: Pengantar Teknologi Mobile 7

Contoh WML (format teks)

Page 13: Pengantar Teknologi Mobile 7

Special Character

Page 14: Pengantar Teknologi Mobile 7

Contoh WML (table)

Page 15: Pengantar Teknologi Mobile 7

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>

Page 16: Pengantar Teknologi Mobile 7

LinksDigunakan untuk menghubungkan antar dokumen

Page 17: Pengantar Teknologi Mobile 7

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" 15 title = "Sports">16 Sports</a><br /> 17 <a accesskey = “2" 18 href = “http://info.wapjag.com/aliens" 18 title = "SciFi">SciFi</a><br /> 20 </p>21 </card> 22 </wml>

Link to mobile.sports.com.

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.

Page 18: Pengantar Teknologi Mobile 7
Page 19: Pengantar Teknologi Mobile 7

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]”/>

Page 20: Pengantar Teknologi Mobile 7

Image

Page 21: Pengantar Teknologi Mobile 7

Input type (teks)

Page 22: Pengantar Teknologi Mobile 7

Input type (select)

Page 23: Pengantar Teknologi Mobile 7

Input (select multiple)

Page 24: Pengantar Teknologi Mobile 7

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

Page 25: Pengantar Teknologi Mobile 7

Go task

Page 26: Pengantar Teknologi Mobile 7

Prev task

Page 27: Pengantar Teknologi Mobile 7

Refresh task

Page 28: Pengantar Teknologi Mobile 7

Noop task

Page 29: Pengantar Teknologi Mobile 7

Contoh Variabel

Page 30: Pengantar Teknologi Mobile 7

Template

• Mendefinisikan tindakan dan event untuk semua card dalam sebuah deck

• Selalu ada tampilan yang sama untuk beberapa card

Page 31: Pengantar Teknologi Mobile 7

Skenario

Page 32: Pengantar Teknologi Mobile 7

Template

Page 33: Pengantar Teknologi Mobile 7

Skenario

Page 34: Pengantar Teknologi Mobile 7

Template

Page 35: Pengantar Teknologi Mobile 7

• Bersambung