HI i have flowing code that runs as expected in Firefox and in IE6 it runs proper at first time and when the second call made it makes problem and returns old value
function loadCartItems()
{
var xmlhttp23;
if(xmlhttp23!= 'undefined')
{
xmlhttp23=getXmlHttpObject();
}
xmlhttp23.onreadystatechange=function()
{
if(xmlhttp23.readyState==4)
{
alert(xmlhttp23.responseText);
}
}
xmlhttp23.open("GET","../printerink/ItemsInCart.aspx",true);
xmlhttp23.send(null);
xmlhttp23=null;
}
function getXmlHttpObject()
{
var request = null;
/* Does this browser support the XMLHttpRequest object? */
if (window.XMLHttpRequest) {
if (typeof XMLHttpRequest != 'undefined')
/* Try to create a new XMLHttpRequest object */
try {
request = new XMLHttpRequest( );
} catch (e) {
request = null;
}
/* Does this browser support ActiveX objects? */
} else if (window.ActiveXObject) {
/* Try to create a new ActiveX XMLHTTP object */
try {
request = new ActiveXObject('Msxml2.XMLHTTP');
} catch(e) {
try {
request = new ActiveXObject('Microsoft.XMLHTTP');
} catch (e) {
request = null;
}
}
}
return request;
}
here i am going to alert the result i have checked at every place by using alert every thing is working proper but i just noticed one problem that is as i am using aspx page to return result in this aspx page i set the break points for debug and found that when first time page get loads these break points fire and if the page loading 2nd time from same IE6 window they are not fired and one thing more that is XMLHTTP all things are working like xmlhttp.readyState is 4 and xmlhttp.status is 200 and just only the xmlhttp.open seems that it is not executing
plz help