Đang chuẩn bị liên kết để tải về tài liệu:
Webmaster's Guide to the Wireless Internet part 20

Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG

Webmaster's Guide to the Wireless Internet part 20. 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 | 162 Chapter 4 Enhancing Client-Side Functionality with WMLScript Using WMLScript and Microsoft Active Server Pages ASP Case Study We have seen how WMLScript can be used to perform client-side validation and to complement WML applications that run on a WAP device. One particular application that is very popular is a currency converter. However the conventional currency converter usually hardcodes the exchange rate in the WMLScript program. Once the WMLScript is downloaded onto the device it is cached and any changes to the currency conversion rate would not be reflected in the application. In this case study we will illustrate how you can use ASP to create a truly dynamic WMLScript program using the currency converter application as a case study. Our currency converter is able to reflect the daily changes in the exchange rates. Designing the Application A currency converter application often is used to illustrate the use ofWMLScript. For this example we will use the UP.Simulator provided by Openwave. Figure 4.16 and Figure 4.17 illustrate the desired outcome of our application. Figure 4.16 Selecting the USD Option to Convert from and Keying the Amount to Convert Figure 4.17 Selecting the SIN Option to Convert to and Viewing the Result of the Conversion www.syngress.com Enhancing Client-Side Functionality with WMLScript Chapter 4 163 The user simply chooses the currency to convert from keys in the amount to be converted and selects the target currency. The converted currency would then be displayed. Creating the Database Our application makes use of a database containing a single table named Conversion.The database table can be seen in Figure 4.18. Figure 4.18 Our Database Contains One Table Named Conversion This table simply contains the exchange rate of currencies.The exchange rate is tagged to a fixed currency the Singapore dollar in this case. For example 1 USD US Dollar 1.73 SIN Singapore Dollar 1 RM Malaysian Ringgit 0.48 SIN Converting from one currency to .

Đã 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.