WAP tag syntax Learning Process

Source: Internet
Author: User

1Element

 

BasicHtmlElementI br B P IMG table

 

<Go>

Used to indicate that the browser displays the specifiedURLIncluding the first card or the specified card on the page. Syntax:<Go href = "url" sendreferer = "false | true" method = "GET | Post" Accept-charset = "charset"> <postfield name = "name" value = "Value "/> <setvar name =" name "value =" value "/> </go>

 

<Prev>

UsedURLPress inURLHistory stack, and open the previousURL. IfURLDoes not exist, then<Prev>Invalid. Similar syntax<Go>:<Prev> <setvar name = "name" value = "value"/> </Prev>

<Refresh>

Used to refresh the current page so that the variables in the page are refreshed. Syntax:<Refresh> <setvar name = "name" value = "value"/> </refresh>

<Noop>

Indicates that nothing is done. This label cannot be used in<Anchor>Is generally used to overwrite page-level event templates.

 

Display form 

Similar Html Of <Form> . <Fieldset> Can be used to include a set of form options, but not required. As mentioned earlier, when <Card> OfOrdered Set False The mobile phone can display a summary card to summarize the valid options, allowing you to select the form options to fill in. Summary card is based on <Fieldset> And independent input boxes <Input> And menus <SELECT> . Syntax: <Fieldset Title = "label"> Form Content </Fieldset>

 

<Input name = "variable" Title = "label" type = "type" value = "value" default = "default" format = "specifier" emptyok = "false | true" Size = "N" maxlength = "N" tabindex = "N"/>

 

Mark

Description

A

Any symbols or uppercase letters (excluding numbers)

A

Any symbol or lowercase letter (excluding digits)

N

Any number (excluding symbols or letters)

X

Any symbol, number, or upper-case letter (cannot be changed to lower-case letters)

X

Any symbol, number, or lowercase letter (cannot be changed to uppercase letters)

M

Any symbol, number, or upper-case letter (can be changed to lower-case letters) or multiple characters. The first character is capitalized by default.

M

Any symbol, number, or lower-case letter (can be changed to upper-case letters) or multiple characters. The first character is lowercase by default.

 

List

Beijing Shanghai Hongkong

Timer

<Card id = "card1" ontimer = "# card2"> <timer name = "time1" value = "50"/> <p align = "center"> after 5S, goto card2 </P> </card>

Template 

<Template onenterforward = "url" onenterbackward = "url" ontimer = "url"> <do>Or<Onevent> </template>

PostfieldTag

<Go href = "http: // 193.120.145.194: 80/WAP" Methos = "Post">

<Postfield name = "Li" value = "$ li"/>

<Postfiels name = "PV" value = "$ PV"/> </go>

Event

OntimerEvent: This event occurs when the timer expires.

OnenterforwardEvent: This event occurs when the user selects a validURLThenURLBefore the address.

OnenterbackwardEvent: This time occurs when the user selects a validPrevAfter the operation, before the user is officially guided.

OnpickEvent: This event occurs when you select an option.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.