ToWP: onpick and ivalue

| WebCab.de | ToWP | Next |

The following code does not work because some browsers will select the first option by default. The user won't be able to go the first URL because he cannot deselect and reselect the first option.

NO:

<wml>
<card>
<p>Some text
<select>
<option onpick="http://my.server.com/foo.wml">Foo</option>
<option onpick="http://my.server.com/bar.wml">Bar</option>
</select>
</p>
</card>
</wml>

If you include the attribute ivalue="0" in the select statement the browser won't select any option by default. If you select the first option the browser requests http://my.server.com/foo.wml.

YES:

<wml>
<card>
<p>Some text
<select ivalue="0">
<option onpick="http://my.server.com/foo.wml">Foo</option>
<option onpick="http://my.server.com/bar.wml">Bar</option>
</select>
</p>
</card>
</wml>

| WebCab.de | ToWP | Next |

© 2000 WebCab.de Contact