Open Url Entry; Case 1. Input Box Followed By An Anchor Tag; Case 2. Input Box Followed By An A Tag; Case 3. Input Box Followed By A Submit Button - Avaya IP Office 3.0 Installation Manual

Ip office 3.0
Hide thumbs Also See for IP Office 3.0:
Table of Contents

Advertisement

Open URL Entry

This document provides sample WML code on how to develop WML pages implementing a text box-
based go to a URL function. This code allows a user to enter a URL into a text entry area and link to that
site.
Please note that these are examples, not an exhaustive list. All WML code is presented in italics.

Case 1. Input Box Followed by an Anchor Tag

Description: User enters a URL into the text entry box and clicks on the URL to retrieve it.
<input name="url" title="Name" />
<anchor title="get it">
Go Get It
<go method="get" href="$(url)">
</go>
</anchor>

Case 2. Input Box Followed by an A Tag

<input name="url" title="Name" />
<a href="$(url)">Go Get It</a>

Case 3. Input Box Followed by a Submit Button

<input name="url" title="Name" />
<do type="submit" name ="submit" label = "Submit">
<go method="get" href="$(url)">
</go>
</do>
Case 4. Input Box Followed by an Anchor Tag Where the Anchor
Tag Already Displays HTTP://
This method displays http so that the user only has to type in the URL at the end of http://.
<input name="url" title="Name" value="http://" />
<anchor title="GET">
Go Get it
<go method="get" href="$(url)">
</go>
</anchor>
Avaya IP Phone Installation
IP Office 3.0
Appendix F: WML Operation
Issue 10b (26th January 2005)
Page 49

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents