Developing WAP Web pages with JavaScript

Source: Internet
Author: User
Tags prev linux

First, you need to configure a Web server

When designing a WAP Web page, whether you are using a WAP development tool UP.SDK or Nokia wap Tookit or Ericsson Wapide, you must make Web server settings, So here are a few common Web server settings described below: (here is the Tomcat4.0, the Apache Web server. Set the method as follows:)

Environment: Apache Web Server on NT or solaries or LINUX or other UNIX

1 Whether it is Windows or Unix or Linux, is to modify the Apache installation directory under the Conf/mime.types files

2 Add the following content to the document:

TEXT/VND.WAP.WML. WML (General plus this one will be able to run the general WAP page)

Image/vnd.wap.wbmp. wbmp

APPLICATION/VND.WAP.WMLC. WMLC

Text/vnd.wap.wmls. wmls

APPLICATION/VND.WAP.WMLSC. WMLSC

3) disk

4 Restart the Apache WEB SERVER.

Second Simple WAP page square.wml (square table) program

 <?xml version="1.0"?>
   <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml";>
   <%@ page contentType="text/vnd.wap.wml" %>
   <wml>
   <card id="card1" title="Math">
   <p>平方表:</p>
   <p> <% {int i;%>
   <%for(i=1; i<=9; i++){ %> <%=i%>x<%=i%>=<%=i+i %><br/> <% }%>
   </p>
    <do type="prev" name="Previous" label="Previous">
   <prev/>
   </do>
   </card>
   </wml>

Third, browsing the WAP page garbled problem

Use analog mobile phone browsing WAP Web page, Chinese characters display will appear garbled or compile error, I generally do with their own a VB small program converted to Unicode code first. It is said that you can set the MIME table in the Web server by adding "; Charset=charset_name" after text/vnd.wap.wml, such as GB2312 kanji: text/vnd.wap.wml;charset= gb2312 to solve.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.