Webmaster's Guide to the Wireless Internet part 44

Webmaster's Guide to the Wireless Internet part 44. The Webmaster’s Guide to the Wireless Internet provides the Wireless Webmaster with all of the tools necessary to build the next generation Internet. Packed with the essential information they need to design, develop, and secure robust, e-commerce enabled wireless Web sites. This book is written for advanced Webmasters who are experienced with conventional Web site design and are now faced with the challenge of creating sites that fit on the display of a Web enabled phone or PDA | 402 Chapter 9 Microsoft Mobile Internet Toolkit Figure @ Page Inherits Language VB @ Register TagPrefix Mobile Namespace Assembly Mobile Form runat server Mobile Label Photo of myself Mobile Label Mobile Image runat server alternateText My Photo here DeviceSpecific Choice Filter isHTML32 ImageURL Choice Filter isWML11 ImageURL DeviceSpecific Mobile Image Mobile Form Within the DeviceSpecific control you have the Choice elements. In the preceding program each choice element contains two attributes Filter and ImageURL. So in this case if the user were using a Web browser the BMP file would be displayed as shown in Figure . Figure Displaying the BMP File in a Web Browser On the the WBMP file would be selected as shown in Figure . Microsoft Mobile Internet Toolkit Chapter 9 403 Figure Displaying the WBMP File in a WAP Browser The Choice elements are evaluated according to the order in which they appear in the DeviceSpecific control. If none of the Choice elements evaluates true the string My Photo here would be Filter attribute contains values that are matched from the deviceFilters element in the configuration file see Figure . The file contains the various device filters. Figure shows a portion of the file. A device may match several filter s. For example a Web browser satisfies the isHTML32 and the prefersGif compare attribute of the filter element specifies the capability evaluated by the comparison evaluator and the argument attribute specifies the argument against which the capability should be compared. To illustrate using the preceding example a WAP device will match the isWML11 filter which will in turn match the second Choice element Choice Filter isHTML32 ImageURL Choice Filter isWML11 ImageURL Figure .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.