card-newcontext-attr.wml   [plain text]


<?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="firstcard" title="One">
        <p>Test for newcontext attribute of card element</p>
        <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>
        <do type="accept" label="Go">
            <go href="#secondcard">
                <setvar name="var1" value="two"/> 
            </go>
        </do>
    </card>

    <card id="secondcard" title="$var1" newcontext="true">
        <p>This is the card $var1</p>
        <p>Because newcontext of this card is true, the history state will be clean, and the variable "$var1" won't be replaced</p>
    </card>
</wml>