Friday 11 October 2013

a WML program to display username and password.

AIM:  Write a WML program to display username and password.
CODE:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
     "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
<card id="card1" title="Practical_8">
<p>  Welcome to registration page......  </p>  
            <do type="unknown" label="LOGIN">   <go href="#card2"/>   </do>
</card>
 <card id="card2" title="TIMER">
<!--<onevent Type="ontimer">       </onevent>        <Timer value ="300"/> -->
<p align="center">
Username: <input type="text" name="username"/>
Password: <input type="password" name="password"/>
</p>
<do type="unknown" label="login">   <go href="#card3"/>     </do>
 </card>
<card id="card3" title="Data">
<p>      Your UserName is:     $username          </p>
<p>      Your Password is:      $password          </p>
</card>

</wml>


a WML program for option group

AIM:  Write a WML program for option group.
CODE:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
     "http://www.wapforum.org/DTD/wml13.dtd">
<wml> 
<card id="card1" title="Practical_7">
<do type="unknown" label="indoor"> <go href="#card2"/> </do>
<do type="ddd" label="outdoor"> <go href="#card3"/>  </do>
<p align="center">
<select name="s1">
                                    <option value="indoor" onpick="#indoor">indoor</option>
                                    <option value="outdoor" onpick="#outdoor">outdoor</option>
            </select>
</p>
</card>
<card id="card2" title="Indoor">
<p align="center">
<select name = "i">
<option>Carrom</option>
<option>Chess</option>
<option>Su-Do-Ku</option>
</select> 
 </p>
 </card>
<card id="card3" title="outdoor">
<p align="center">
<select name = "i">
<option>Hocky</option>
<option>Cricket</option>
<option>Football</option>
</select> 
  </p>
  </card>

</wml>


A WML program to display user personal information.

AIM:  Write a WML program to display user personal information.
CODE:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
     "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
 <card id="card1" title="Practical_6">
 <do type="unknown" label="Go to Next Card">  <go href="#card2"/>  </do>
<p align="center">
Enter Your Name : <input type="text" name="username"></input>
Enter Your City : <input type="text" name="usercity"></input>  
Enter Your Sem : <input type="text" name="usersem"></input>
Enter Your Address : <input type="text" name="useraddress"></input>
</p>
</card>
<card id="card2" title="Card2">
<p align="center">
            Hello $(username)
                        I am Coming from $(usercity)
                        I am in $(usersem)
                        My Address is $(useraddress)
</p>
</card>

</wml>


A WML program to display table.

AIM:  Write a WML program to display table.
CODE:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
     "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
  <card id="card1" title="Pract_5">
    <p align="center">
      <big><b>Table</b></big>
                        <table columns="2">
                        <tr>
                        <td>year</td>
                        <td>persantage</td>
                        </tr>
                        <tr>
                        <td>first year</td>
                        <td>53</td>
                        </tr>
                        <tr>
                        <td>second year</td>
                        <td>53</td>
                        </tr>
                        <tr>
                        <td>Third year</td>
                        <td>53</td>
                        </tr>
                        <tr>
                        <td>forth year</td>
                        <td>53</td>
                        </tr>
                        </table>
    </p>
  </card>

</wml>


A WML program to call second deck from first deck

AIM:  Write a WML program to call second deck from first deck.
CODE:  
1.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
  <card id="card1" title="Pract_4"> 
    <p align="center">
      <big><b>This is First Deck</b></big>
    </p>
            <p align="center"> <a href="pract_4_2.wml">click here to go on second deck</a> </p>
  </card>
</wml>


2

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"    "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
  <card id="card1" title="Pract_4">
    <do type="unknown" label="Next">
      <go href="#card2"/>
    </do> 
    <p align="center">
      <big><b>This is Second Deck</b></big>
    </p>
            <p align="center">  <a href="pract_4_1.wml">click here to go on first deck</a> </p>
  </card>

</wml>


A WML program to call two cards from same deck

AIM:  Write a WML program to call two cards from same deck.

CODE:
 <?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
     "http://www.wapforum.org/DTD/wml13.dtd">

<wml>
  <card id="card1" title="Card #1">
    <do type="unknown" label="Next">
      <go href="#card2"/>
    </do>
            <do type="unknown1" label="Next">
      <go href="#card3"/>
    </do>
    <p align="center">
      <big><b>This is card one</b></big>
    </p>
  </card>
  <card id="card2" title="Card #2">
        <p align="center">
      <big><b>This is card two</b></big>
    </p>
  </card>
  <card id="card3" title="Card #3">
        <p align="center">
      <big><b>This is card three</b></big>
    </p>
  </card>

</wml>


A WML program to display text in Bold, Italic, Small, Big, Emphasize format.

AIM:  Write a WML program to display text in Bold, Italic, Small, Big, Emphasize format.
CODE:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
     "http://www.wapforum.org/DTD/wml13.dtd">
<wml>

  <card id="card1" title="Pract_2">
    <p align="center">
      <big><b>Second practical of WML</b></big> </p>
    <p align="center"> <big> This is BIG Fonts </big> </p>
    <p align="center"> <b> This is BOLD Fonts </b> </p>
    <p align="center"> <i> This is ITALIC Fonts </i> </p>
    <p align="center"> <u> This is UNDERLINE Fonts </u> </p>
    <p align="center"> <em> This is EMPHASIZE Fonts </em> </p>
    <p align="center"> <small> This is SMALL Fonts </small> </p>    

  </card>

</wml>