hi,
I need add an attribute function to a text box i create. I use the script below and it seems to work fine with Firefox but it doesnt work with IE. Any idea?
if (window.attachEvent) {
textElem.attachEvent("onblur", function(){
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url=" url=url+"?sku="+document.getElementById(name).value
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
});
} else if (window.addEventListener) {
textElem.setAttribute("onblur","ajaxrequest('"+name+"','"+lineId+"','"+id+"')");
}
I need add an attribute function to a text box i create. I use the script below and it seems to work fine with Firefox but it doesnt work with IE. Any idea?
if (window.attachEvent) {
textElem.attachEvent("onblur", function(){
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url=" url=url+"?sku="+document.getElementById(name).value
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
});
} else if (window.addEventListener) {
textElem.setAttribute("onblur","ajaxrequest('"+name+"','"+lineId+"','"+id+"')");
}