打印

wap1.x 代码改成 wap2.0的一些问题?班主来啊。

我现在要将wap 1.x 的wap程序改到wap2.0的
但很多地方不知道怎么改,版主可以帮忙解答一下吗?
比如下面的代码:
复制内容到剪贴板
代码:
<%response.ContentType="text/vnd.wap.wml"%>
<?xml version="1.0" encoding="big5"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
<meta http-equiv="Cache-Control" content="max-age=0" />
<meta http-equiv="Cache-control" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=big5" />
</head>
<card id="enter1" newcontext="true">
<a href="<%=request.cookies("homeurl")%>">&#x56DE;&#x5230;&#x670D;&#x52D9;&#x9996;&#x9801;</a><br/>
</p>
<anchor>
<go  href="stone.asp">
<postfield name="mid" value="<%=mmid%>"/>
<postfield name="page" value="<%=page-1%>"/>
</go>
<%=c2u("上一頁")%>
</anchor>
<do type="options" label="<%=c2u("回首頁")%>" optional="false">
<go href="<%=request.cookies("homeurl")%>" sendreferer="false" method="get"/>
</do>
<do type="accept" label="<%=c2u("返回")%>" optional="false">
<prev/>
</do>
</card>
</wml>
我已经改成这样了:
复制内容到剪贴板
代码:
<%response.ContentType="text/vnd.wap.wml"%>
<?xml version="1.0" encoding="big5"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Cache-Control" content="max-age=0" />
<meta http-equiv="Cache-control" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=big5" />
</head>
<body>
<a href="<%=request.cookies("homeurl")%>"> &#x56DE;&#x5230;&#x670D;&#x52D9;&#x9996;&#x9801;</a><br/>
</p>
<anchor>
<go  href="stone.asp">
<postfield name="mid" value="<%=mmid%>"/>
<postfield name="page" value="<%=page-1%>"/>
</go>
<%=c2u("上一頁")%>
</anchor>
<do type="options" label="<%=c2u("回首頁")%>" optional="false">
<go href="<%=request.cookies("homeurl")%>" sendreferer="false" method="get"/>
</do>
<do type="accept" label="<%=c2u("返回")%>" optional="false">
<prev/>
</do>
</body>
</html>
也不知道对不对,然后我还有几个问题:
复制内容到剪贴板
代码:
<%response.ContentType="text/vnd.wap.wml"%>
要不要改成:
复制内容到剪贴板
代码:
<%response.ContentType="text/vnd.wap.xhtml"%>
还是改成什么别的,请教了

还有:
复制内容到剪贴板
代码:
<do type="options" label="<%=c2u("回首頁")%>" optional="false">
<go href="<%=request.cookies("homeurl")%>" sendreferer="false" method="get"/>
</do>
<do type="accept" label="<%=c2u("返回")%>" optional="false">
<prev/>
</do>
这段代码怎么用xhtml定义软键啊?

还有:
复制内容到剪贴板
代码:
<anchor>
<go  href="stone.asp">
<postfield name="mid" value="<%=mmid%>"/>
<postfield name="page" value="<%=page-1%>"/>
</go>
<%=c2u("上一頁")%>
</anchor>
这段要怎么改啊?

好了,问完了,问题有点多,大家慢慢看,先谢谢大家了
为了中国的行业标准而努力
.:南缘北哲:.-我的博客我喜欢
移动WAP2.0
text/html;charset=UTF-8

其它的看WAP2.0的定义..
折除~~重组自己~~~
MyBlog
2.0的格式:

<%@LANGUAGE="VBScript" CODEPAGE="65001"%>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>titlename</title>
</head>
<body>
你的内容
</body>
</html>

-------------------------------

<%response.ContentType="text/vnd.wap.wml"%>这句要删除


-----------------------------
<anchor>
<go  href="stone.asp">
<postfield name="mid" value="<%=mmid%>"/>
<postfield name="page" value="<%=page-1%>"/>
</go>
<%=c2u("上一頁")%>
</anchor>

这个用<form></form>,和html一样的

应该是<%response.ContentType="application/xhtml+xml"%>
2.0中已经没有postfield了,直接用form,和html一样的,就是<input>不要忘了/
wap站wap.jxcqq.com
web站www.jxcqq.com
wap系统测试站test.jxcqq.com(手机前台),test.jxcqq.com/admin(管理后台)
认为我的系统好的请帮忙宣传,呵

TOP

还在为头像烦恼?还在为不能关注好友动态烦忧?快来蓝色理想家园吧!
谢谢大家
为了中国的行业标准而努力
.:南缘北哲:.-我的博客我喜欢

TOP

1.2和2.0多大区别阿?
谁能详细说一说啊.

TOP

区别比较大,wml和xhtml的区别就很大。wap2.0可以支持CSS mobile
为了中国的行业标准而努力
.:南缘北哲:.-我的博客我喜欢

TOP

标准 mime 类型应该是

application/vnd.wap.xhtml+xml

TOP