• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0"?>
2<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
3<wml>
4    <card id="firstcard" title="One">
5        <p>Test for newcontext attribute of card element</p>
6        <p>This is the first card, Click "Go" to enter card two.<br/>Because newcontext of card two is true, the history state will be clean, and the variable "$var1" won't be replaced</p>
7        <do type="accept" label="Go">
8            <go href="#secondcard">
9                <setvar name="var1" value="two"/>
10            </go>
11        </do>
12    </card>
13
14    <card id="secondcard" title="$var1" newcontext="true">
15        <p>This is the card $var1</p>
16        <p>Because newcontext of this card is true, the history state will be clean, and the variable "$var1" won't be replaced</p>
17    </card>
18</wml>
19