I just did a very basic test, the javascript:
function ajaxFunction(){
var xmlHttp;
try{
xmlHttp = new XMLHttpRequest();
}catch (e){
try{
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
}catch (e){
try{
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}catch (e){
alert("Your browser does not support AJAX!");
return false;
}
}
}
xmlHttp.onreadystatechange = function(){
if(xmlHttp.readyState == 4){
alert(xmlHttp.responseText);
}
}
xmlHttp.open("GET", "http://localhost/@ajaxTest", true);
xmlHttp.send(null);
}
$(document).ready(function(){
ajaxFunction();
});
And the pico code launched with ./p dbg.l ajaxtest.l -go:
(load "lib/http.l" "lib/xhtml.l" "lib/ps.l" "lib/adm.l" "lib/misc.l")
(de js (JS)
(prinl "<script type=\"text/javascript\" src=\"js/" JS "\"></script>"))
(de ajaxTest ()
(httpHead "text/plain; charset=utf-8")
(ht:Out T
(ht:Prin "Pico Here")))
(de start ()
(html 0 "RSS Reader" NIL NIL
(js "jquery.js")
(js "test.js")))
(de go () (server 8080 "@start"))
The above works just fine, however when changing the GET to POST I run
in to the same stalling problem as I did before. Is there a reason why
this is the case, maybe something pertaining to the GUI?
I'm using the httpGate in the above example to truly eliminate all
possible fail reasons.
/Henrik
--
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]