// ACAjax : wrapper sur XmlHTTP ; compatible avec prototype.js // new ACAjax.Request( // "http://www.allocine.fr/series/ficheserie.html", // { // method:"get", // onSuccess:function(xhr){window.alert(xhr.responseText);}, // onFailure:function(xhr){window.alert(xhr.status);}, // parameters:"cserie=221" // } // ); // // Helper ACAjax.encodeParameters : ACAjax.encodeParameters({cSerie:221,csaison:1492}) revoie "cserie=221&csaison=1492" // Helper ACAjax.sameDomain : ACAjax.sameDomain("http://www.allocine.fr/ws.html") depuis "http://01net.allocine.fr/XXX" revoie "http://01net.allocine.fr/ws.html" ACAjax = {}; ACAjax.Request = function(url, options){ var request = null; var tentatives = [ function(){return new XMLHttpRequest();}, function(){return new ActiveXObject("Msxml2.XMLHTTP");}, function(){return new ActiveXObject("Microsoft.XMLHTTP");}, ]; for (i=0;(null==request)&&i