Page 199 - DCAP512_WAP_AND_WML
P. 199

Unit 14: Problems for Practice




               <p>                                                                              Notes
               <a href=”script.wmls#hello()”>Click Here</a>
               $(message)
               </p>
               </card>
               </wml>
               Coding of WMLS (script.wmls)
               extern function hello()
               {
               WMLBrowser.setVar(“message”,”How are you!”);
               WMLBrowser.refresh();
               }
          4.   Example of Using DO type Tag  In WML
               <?xml version=”1.0"?>
               <!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.1//EN”
               “http://www.wapforum.org/DTD/wml_1.1.xml”>
               <wml>
               <card title=”First Page” id=”first”>
               <do type=”Next”>
               <go href=”#second”/>
               </do>
               <p>
               This is first page
               </p>
               </card>
               <card id=”second”>
               <do type=”Back”>
               <go href=”#first”/>
               </do>
               <p>
               Hello
               </p>
               </card>
               </wml>
          5.   Example of Using <P> Tag  In WML
               <?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=”HTML” title=”HTML Tutorial”>
                 <p>Our HTML Tutorial is an award winning
               tutorial from W3Schools.</p>
               </card>



                                           LOVELY PROFESSIONAL UNIVERSITY                                   193
   194   195   196   197   198   199   200   201   202   203   204