yes, here's the example :
function test(){
var xhr=null;
xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() { getList(xhr); };
xhr.open("GET","
http://site.com/test.php", true);
xhr.send(null);
}
function getList(xmlhr){
if (xmlhr.readyState==4) {
document.getElementById("ajaxtest").value = xmlhr.responseText;
}
}
// dans le corps du fichier XUL
<button id="test" label="test" oncommand="test();" />
<label id="ajaxtest" value="test" />
said nabirh wrote:
> Hi,
> I'm trying to add a small ajax part to the main window of zap.
> but the small test part I inserted takes along time before responding
> and brings no data from the url I gave to the GET method.
>
> does zap's Xulrunner support fully AJAX ?
>
It should work fine. You are using XMLHttpRequest?
Cheers,
Alex
>
> Thanks
> --
> http://www.nabirh.free.fr
--
To unsubscribe send an email with subject unsubscribe to zap-devel@croczilla.com.
Please contact alex@croczilla.com for questions.