кстати вот ответ на мой вопрос
function loadXMLDoc(lis)
{
req = null;
if (window.XMLHttpRequest) {
try {
req = new XMLHttpRequest();
} catch (e){}
} else if (window.ActiveXObject) {
try {
req = new ActiveXObject('Msxml2.XMLHTTP');
} catch (e){
try {
req = new ActiveXObject('Microsoft.XMLHTTP');
} catch (e){}
}
}
if (req) {
req.open("GET", 'http://www.vika.ru/menu/div/pro.php?w='+lis.id, true);
req.onreadystatechange = processReqChange;
req.send(null);
}
}
function processReqChange()
{
try { // ?????!
// ?????? ??? ????????? "complete"
if (req.readyState == 4) {
// ??? ??????? "OK"
if (req.status == 200) {
// ????????? ??????
alert("vse ok"+req.responseText);
} else {
alert("?? ??????? ???????? ??????:\n" +
req.statusText);
}
}
}
|