WAP programming

zhaozj2021-02-08  280

WAP programming entry Author: www.wapschool.com Writing Date: 2000-4-13

Knowledge before WAP programming If you have the following knowledge, you can quickly learn the WAP web page design:

Understand the basic knowledge of Internet, understand the HTTP protocol and its connotation; familiar with the web server, understand the interaction principle between the web server and the browser; understand the HTML language specification, familiar with the design of the static web page; familiar with JavaScript, XML language design it is good;

Design your first WAP page When you know the preparation knowledge of the previous step, you can download the programming tool from the Internet, which contains the WAP mobile emulator, with the WAP mobile emulator to test your WAP page. WAP programming tools have a lot, you can download from the following sites:

Nc; iversson;

The following is an example of the UP.SDK of Phone.com. First, write the WML script You can write the first WAP page with any text editor, where I name this file is ff.wml, and build a subdirectory EX in the documentroot directory of your web server, will ff .Wml exists in this directory.

Note: Those familiar with XML know that the above two sentences are XML preambles, indicating that the document meets the XML version 1.0 and follows //www.phone.com/dtd/wml11.dtd document type.

Note: The WAP page begins with the tag, like a web page starts like a tag. Next, there are many physical segments, CARD is a display page in the WAP page, and a WAP web page can have multiple display pages.

Type you expected pay:

Note: Represents a submission button, similar to the Submit button in the FORM in HTML. represents a submission link, that is, the mobile phone user presses the HOWMUCH submission button, the ID name is the display page of 'result'.

Congratulations,

The salary you expect is: $ SALARY! Note:

you The expected salary is: $ SALARY! Display strings and numbers entered in text input boxes.

is similar to the Web page. indicates the end of the entire WAP page. Second, configuring the web server in design WAP web pages, whether the WAP development tool you use is UP.SDK or Nokia WAP Tookit or Ericsson Wapide, you must set up a web server setting, so there are several web servers that will be common here. The settings are as follows:

1, the IIS of the Window NT platform:

a, start menu -> program -> Windows NT Option Pack -> IIS4.0;

b, right-click the child computer name of Internet Information Server, select 'Properties' on the shortcut menu;

c, under the lower part of the property page, there is a 'File Type (f)' button, click this button, the file type interface will appear;

d, click the 'New Type' button, then fill in .WML in the relevant extension column, fill in the text / vnd.wap.wml in the Content Type (MIME) field;

E, click 'OK' button;

f, repeat C, D, E three steps, add additional MIME type;

2, Apache Web Server ON NT or Solaries or Linux or other versions of UNIX:

A, whether it is NT or UNIX or Linux, is a conf / mime.types file in the Apache installation directory;

b, add the following in this file:

TEXT / VND.WAP.WML .wml

Image / vnd.wap.wbmp .wbmp

Application / vnd.wap.wmlc .wmlc

TEXT / VND.WAP.WMLS .WMLS

Application / vnd.wap.wmlsc .wmlsc

C, storage;

d, restart Apache Web Server;

转载请注明原文地址:https://www.9cbs.com/read-1782.html

New Post(0)