Tutorial on building a Wap site with QuickWAP components - Preparation
First of all, we need to briefly understand what QuickWAP is. QuickWAP V1.0 Lite is a component based on the WAP1.2 protocol and developed using VB6 to write WAP web pages.
Secondly, we need to install QuickWAP V1.0 Lite Version
The installation process is as follows:
1. First copy the QuickWAP.dll file to the system32 directory.
The Windows 2000/Server/Advanced Server operating system is:
System drive letter:/WINNT/system32/
The Windows XP/2003 operating system is:
System drive letter:/Windows/system32/
2. Register the control.
Start Menu—> Run the Regsvr32 QuickWap.dll command.
After successful registration, the dialog box pops up as follows:
Next we can check whether Quickwap.Dll has been successfully installed and create a new ASP file. The code is as follows:
If you run this file through IIS, you can get the following figure, which means that the installation has been successfully done and you can use this component.
Note: Before using QuickWAP, please make sure that the server has configured the MIME type of WAP.
Associated Extension
MIME Type
wml
text/vnd.wap.wml
wmlc
application/vnd.wap.wmlc
wbmp
image/vnd.wap.wbmp
wmlsc
application/vnd.wap.wmlscriptc
wmls
text/vnd.wap.wmlscript
wsc
application/vnd.wap/wmlscriptc
Here is the MIME type that configures WAP in IIS:
1. Start IIS
Start Menu - Settings - Control Panel - Administrative Tools - Internet Information Services (IIS) Manager
2. Right-click the local computer to view the properties
3. Open the MIME type and add the above data to it.
Tutorial on building a Wap site with QuickWAP components - Practical Chapter
Now we start to learn to write Wap code using Quickwap components.
1> Frame PageHeader and PageFooter
PageHeader
Function: PageHeader is used to set the access control information, cache and other functions of WAP pages, outputs the WAP file header and generates cards one by one.
Syntax: Wap.PageHeader("CacheControl","forua","OtherAtt")
Description: CacheControl max-age specifies the lifetime of the DECK in the cache, the minimum unit is seconds. If specified as 0, the DECK needs to be called by connecting to the server each time.
forua forua is an optional attribute, specifying whether the tag is deleted by the intermediate proxy before the wml file is transmitted to the client (because the transmission protocol may change), the default value is false.
OtherAtt is used to set other attribute values. The attribute values can be enclosed in single quotes or two double quotes.