Hi all!
I'm trying to make periodically requests to an URL using the DOJO
javascript library, but I'm getting some errors.
The javascript code that I use is:
dojo.io.bind({
url: targetUrl,
load: function(type, data, evt) {
alert("onload");
},
error: function(type, data, evt) {
alert("onerror:" + data.message + " type:" + data.type);
},
mimetype: "text/plain",
method: "GET",
timeoutSeconds: 2
});
The page displays an alert window with the message:
"onerror:XMLHttpTransport Error: 0 type:unknown".
The dojo function "dojo.io.bind" is also used in WaitingPage and it
works fine. I believe it has something to do with the targetUrl, because
in WaitingPage the URL is from jetty context and in my case I use an
outside apache script(and which doesn't use SSL).
Below I put a capture of the HTTP header and response:
http://localhost/retrieve-update-log.cgi?start_pos=1
GET /retrieve-update-log.cgi?start_pos=1 HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2)
Gecko/20100115 Firefox/3.6
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en,pl;q=0.8,it;q=0.6,ro;q=0.4,en-us;q=0.2
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Origin: https://localhost:8443
HTTP/1.0 200 OK
Date: Mon, 15 Mar 2010 15:31:48 GMT
Server: Apache/2.2.14 (Fedora) mod_ssl/2.2.14 OpenSSL/0.9.8g DAV/2
Connection: close
Content-Type: text/plain; charset=ISO-8859-1
Content-Language: en
_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/