| ECS-L Home Automation and Security Archives |
| Subject: From: Date: | Re: [ECS] WAP Dario Greggio Tue, 15 Aug 2000 22:27:09 +0200 |
Mark Gilmore wrote: > > Hi Dario, > >From what I gathered at > http://www.javaworld.com/javaworld/jw-06-2000/jw-0602-wap.html, > it looks like it would be easy to define a "Card" > listing all Groups. When the user selected a Group, > the ECS server would return a Card listing the Items > in that Group. When the user selected an Item, ECS would > return a Card listing the Item's current State, followed > by all possible States for that Item. When/if the user > selected a State, ECS would set that Item to that State. Well, from what I understood in my two-days exploration :-) was that a card is more or less the "body" from HTML. It's a container for objects: differently from body, it has less capabilities, but you can put more of them in a pag and refer to each as different sub-pages. I'm sending you a page of a service who tested my application and found it working. The text in italics is my source WML code created on the fly (actually this is the intro page, so it never changes). Rules for headers look much the same. I'm having a little trouble because I don't have a WAP phone, and I'm using several emulator. One won't show me pictures, another will... But I'm doing all right! It looks like TAGS *must* be in lower case, even if this sound strange to me. Also, the first two lines ?xml and <!doctype seem to be mandatory. I'll dig more into the WML tags later.. by now all I know comes from exploring other peoples' work. The WBMP format is quite easy... let me know if you're interested in anything. I'm including also a GET line and a response line: GET http://wap.yospace.com/index.wml HTTP/1.0 host: wap.yospace.com Accept: text/vnd.wap.wml,application/vnd.wap.wmlc,text/vnd.wap.wmlscript,application/vnd.wap.wmlscriptc Accept-Language: it-IT User-Agent: Nokia 7110 v0.13 (compatible; YOSPACE SmartPhone Emulator 1.0) HTTP/1.1 200 OK Date: Mon, 14 Aug 2000 21:11:04 GMT Server: Apache/1.3.6 (Unix) ApacheJServ/1.1 mod_perl/1.21 mod_ssl/2.2.8 OpenSSL/0.9.2b Last-Modified: Thu, 27 Jul 2000 15:20:20 GMT ETag: "1b020-54e-39805334" Accept-Ranges: bytes Content-Length: 1358 Connection: close Content-Type: text/vnd.wap.wml <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> [...] > btw, what would the "Get" header look like ? I still don't know how to create forms or GETs. I know there is a powerful script language and it will be easy to use it for getting input. I think anyway that a menu/submenu multiple choice for each item would be good enough and quite easy to implement. > Can these Wap Cards be "scrolled" ? Of course they can. I still don't know which is the longest size... On Nokia, looks like it's about 2K: it is our care to create smaller card (I list MP3 songs by title and a 10KB page simply gets truncated with no warning!) Looks like links can only be as long as a full line or more (that is, no more than a link per row) Ah, of course you can customize the two phone buttons!! -- Ciao, Dario -- ADPM Synthesis sas - Torino -- http://www.geocities.com/adpm99
![]() |
| HOME | LINKS | FORUM | DEVICES | DEVELOPER | SEARCH |
| Type | Code | Description |
| Response code | 200 | OK. We received the document without any problems! |
| Content-type | text/vnd.wap.wml | Perfect! It's a WML page. I.e. the server is configured correct |
<?xml version='1.0'?>
<!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.1//EN' 'http://www.wapforum.org/DTD/wml_1.1.xml'>
<wml>
<template><do type='prev' label='Indietro'><prev/></do></template>
<card id='card0' title='JOSHUA' ontimer='#card1'><timer value='100'/><p align='center'><b>State entrando in Joshua</b><br/>
<img src='/joshua.wbmp' alt='immagine'/><a href='#card1'>Cliccate qui per proseguire</a><br/>
<br/><a href='http://tagtag.com/adpm'>ADPM Synthesis</a><br/></p></card>
<card id='card1' title='JOSHUA'>
<p><a href='casa.wml'>Panoramica casa</a><br/>
<a href='sensori.wml'>Sensori</a><br/>
<a href='segreteria.wml'>Segreteria</a><br/>
<a href='jukebox.wml'>Juke-box</a><br/>
</p></card>
</wml>
| HOME | LINKS | FORUM | DEVICES | DEVELOPER | SEARCH |
| Last updated Jan 8, 2000 Send questions and WAP links to wap@gelon.net gelon.net © 2000 - Oslo, Norway |
|||||