Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Sep 08, 2011 05:08 PM by roopeshreddy
0 Points
1 Post
Sep 08, 2011 08:22 AM|LINK
Hi,
It is only found on my real device.It is ok for simulator.
I set up a simple ajax service on tomcat and the server side code as below:
auto.jsp:
<%@ page contentType="text/html; charset=UTF-8" %>
<%
response.setContentType("text/plain");
response.setHeader("Cache-Control","no-cache");
out.print("sssssssssssss");
out.close();
%>
test.html:
function sendRequest() {
createXMLHttpRequest();
var url = "auto.jsp";
XMLHttpReq.open("POST", url, true);
XMLHttpReq.onreadystatechange = processResponse;
XMLHttpReq.send(null);
}
function processResponse() {
if (XMLHttpReq.readyState == 4) {
if (XMLHttpReq.status == 200) {
alert("["+XMLHttpReq.responseText+"]");
alert("XMLHttpReq:"+XMLHttpReq.getResponseHeader("Content-Type"));
alert("Length:"+XMLHttpReq.responseText.length);
} else {
window.alert("error");
Then i use device IE open url "http://MyPCIP:8080/test.html",but responseText is null string.
And if resonse test is a long text(length more than 1535), then client can accept it.
windows
All-Star
20135 Points
3323 Posts
Sep 08, 2011 05:08 PM|LINK
Cross check the seetings in the Emulator and the Mobile device!
If it is working with emulator, it should work with the device.
Hope it helps u...
Jimagic
0 Points
1 Post
Is this a bug of Mobile Internet Explorer for Windows Mobile 6.0 and 6.1 real device?
Sep 08, 2011 08:22 AM|LINK
Hi,
It is only found on my real device.It is ok for simulator.
I set up a simple ajax service on tomcat and the server side code as below:
auto.jsp:
<%@ page contentType="text/html; charset=UTF-8" %>
<%
response.setContentType("text/plain");
response.setHeader("Cache-Control","no-cache");
out.print("sssssssssssss");
out.close();
%>
test.html:
function sendRequest() {
createXMLHttpRequest();
var url = "auto.jsp";
XMLHttpReq.open("POST", url, true);
XMLHttpReq.onreadystatechange = processResponse;
XMLHttpReq.send(null);
}
function processResponse() {
if (XMLHttpReq.readyState == 4) {
if (XMLHttpReq.status == 200) {
alert("["+XMLHttpReq.responseText+"]");
alert("XMLHttpReq:"+XMLHttpReq.getResponseHeader("Content-Type"));
alert("Length:"+XMLHttpReq.responseText.length);
} else {
window.alert("error");
}
}
}
Then i use device IE open url "http://MyPCIP:8080/test.html",but responseText is null string.
And if resonse test is a long text(length more than 1535), then client can accept it.
windows
roopeshreddy
All-Star
20135 Points
3323 Posts
Re: Is this a bug of Mobile Internet Explorer for Windows Mobile 6.0 and 6.1 real device?
Sep 08, 2011 05:08 PM|LINK
Hi,
Cross check the seetings in the Emulator and the Mobile device!
If it is working with emulator, it should work with the device.
Hope it helps u...
Roopesh Reddy C
Roopesh's Space