locked
Is this a bug of Mobile Internet Explorer for Windows Mobile 6.0 and 6.1 real device? RRS feed

  • Question

  • User1977056924 posted

    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.

    Thursday, September 8, 2011 4:22 AM

Answers

  • User1943143334 posted

    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...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 8, 2011 1:08 PM