-
December 25th, 2006, 10:42 AM
#1
onreadystatechange do nothing
i wrote-
function updateEventItems(value)
{ var xmlObj=null;
if (window.XMLHttpRequest)
xmlObj=new XMLHttpRequest();
else if (window.ActiveXObject)
xmlObj=new ActiveXObject("Microsoft.XMLHTTP");
else return;
xmlObj.onreadystatechange=function()
{ if(xmlObj.readyState==4) alert("ok");
}
}
and in some component i have added-
onchange="updateEventItems(this.value)"
i guess im missing something because im not getting the "ok" alert
what is wrong ?
thanks in advanced.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|