The input extension is consisted of two WCSS properties: -wap-input-format and -wap-input-required.
If you are familiar with WML mobile Internet application development, you will know that the <input> WML element contains the format attribute and the emptyok attribute. The format attribute defines the type and number of characters that a user can enter in an input field, and the emptyok attribute defines whether an input field can be left empty.
In XHTML MP, the format attribute and the emptyok attribute are not included in the <input> element any more and their corresponding function has been moved to WAP CSS. The -wap-input-format and -wap-input-required properties are used to replace the format attribute and the emptyok attribute respectively.
Some earlier mobile devices' WAP browser does not support the -wap-input-format and -wap-input-required WCSS properties, but supports the format attribute and the emptyok attribute as an extension to XHTML MP. If you want to ensure that your XHTML MP page functions correctly in the WAP browser of most mobile devices, you may want to include both the WCSS property and the WML attribute in the same element. For example,
<input type="text" format="N" style='-wap-input-format: "N"'/>
If both the -wap-input-format WCSS property and the format attribute (or the -wap-input-required WCSS property and the emptyok attribute) are specified in the same XHTML MP element and their values are different, the WCSS property takes precedence.
|Previous Page||Page 26 of 39||Next Page|
- 1. WCSS (WAP CSS) Introduction
- 2. Wireless CSS and Wireless Profile CSS
- 3. Advantages of Using WAP CSS Style Sheets on Mobile Internet Sites
- 4. Disadvantages of Using WAP CSS Style Sheets on Mobile Internet Sites
- 5. Syntax Rules of WCSS
- 6. Comments in WCSS
- 7. How to Apply WCSS Styles to an XHTML MP Document
- 8. Different Types of Selectors
- 9. Div and Span Element of XHTML MP
- 10. Cascading Rules for Handling Multiple Groups of WCSS Styles Applied to the Same Element
- 11. Common Types of Property Value
- 12. WCSS Font and Text Properties
- 13. WCSS List Properties
- 14. WCSS Color Properties
- 15. WCSS Border Properties
- 16. WAP Specific Extensions to CSS
- 17. WCSS Access Key Extension
- 18. WCSS Input Extension
- 19. WCSS Marquee Extension
- 20. Matching WCSS Cascading Style Sheets to Different User Agents