blob: 33ea41acc1d6da021f5c750536391879b076928d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="One">
<p> Test for go element in WML </p>
<br/>
Case 1: jump among one deck
<do name="go" type="accept" label="Go to card2">
<go href="#card2" sendreferer="true" />
</do>
<p/>
Case 2: jump from one deck to another one
<do name="go2" type="accept" label="Go to test.wml">
<go href="../test.wml"/>
</do>
<p/>
Case 3: jump to test.wml and post data with post method
<do name="go3" type="accept" label="Post to test.wml">
<go href="../test.wml" method="post" accept-charset="utf-8, latin1">
<postfield name="var1" value="hello"/>
<postfield name="var2" value=" world"/>
</go>
</do>
<p/>
Case 4: jump to test.wml and send request with get method
<do name="go4" type="accept" label="get from test.wml" sendreferer="true">
<go href="../test.wml" method="get" accept-charset="utf-8,latin1,iso-8859-1">
<postfield name="var1" value="hello"/>
<postfield name="var2" value="friend"/>
</go>
</do>
</card>
<card id="card2" title="Two">
<p align="center">
This is the second card
</p>
</card>
</wml>
|