1.

What Are The Wml Variable?how To Use Them?

Answer»

Use of variables in WML is that when CLIENT want to switch over card to card in a deck,than client should have to store the data into variables.

 We can use variables in WML sing two ways:

  • Can SET a variable using setvar Command: Suppose that if client want to execute go,prev and refresh type task than they can use setvar command and CREATE a variable with a specific value.

Example:

<setvar name="x" value="9999"/>

  • Can set a variable with an input element: If we want to set variable with an input,select, OPTION etc input element.

Example:

<card id="card1">
<select name="enotes">
<option value="PHP">PHP Tutorial</option>
<option value="CSS">CSS Tutorial</option>
<option value="WAP">WAP Tutorial</option>
</select>
</card> 

We can use this created variable enotes into the card2. 

<card id="card2">
<p>You have selected: $(enotes)</p>
</card>

In the above example we create an variable enotes in card1 and passed the selected enotes into card2 by variable enotes.

Use of variables in WML is that when client want to switch over card to card in a deck,than client should have to store the data into variables.

 We can use variables in WML sing two ways:

Example:

<setvar name="x" value="9999"/>

Example:

<card id="card1">
<select name="enotes">
<option value="PHP">PHP Tutorial</option>
<option value="CSS">CSS Tutorial</option>
<option value="WAP">WAP Tutorial</option>
</select>
</card> 

We can use this created variable enotes into the card2. 

<card id="card2">
<p>You have selected: $(enotes)</p>
</card>

In the above example we create an variable enotes in card1 and passed the selected enotes into card2 by variable enotes.



Discussion

No Comment Found