function createXMLHttpRequest(){ var xmlHttp; if ( window.ActiveXObject ){ /* jeśli IE 6 lub starszy */ xmlHttp = new ActiveXObject('Microsoft.XMLHttp'); } else if(window.XMLHttpRequest){ /* dla innych przeglądarek */ xmlHttp = new XMLHttpRequest(); } if ( !xmlHttp ) { alert('Nie udało się.'); } else { return xmlHttp; } }
prosze o pomoc
