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="card1" title="Card 1"> 5 <timer name="T" value="30"/> 6 <onevent type="ontimer"> 7 <refresh> 8 <setvar name="var" value="VARIABLE"/> 9 </refresh> 10 </onevent> 11 12 <p>Test for onevent element which binds refresh task with ontimer event</p> 13 <p>When the timer timeout(3s), the page will be refresh. As a consequence, we can see the following variable reference has been substituted</p> 14 <p align="center"> Here is a variable : var = $var</p> 15 </card> 16 </wml> 17