Hi,

I am trying to load some data using Ajax, it works fine when I open the page for the first time, but, when I reload the page it doesn't display any output...

there are approximate 10 such function and it is happening with every function, but it is working with on Firefox...


this is my function to create HTTP object:

Code:
function getHTTPObject()
{



	try
	{
		return new XMLHttpRequest();
	}
	catch (e)
	{
	  // Internet Explorer
		try
		{
			return  new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
			  return  new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				 alert("Your browser does not support AJAX!");
				 return false;
			}
		}
	  }  
}

Code:
here is the function:


function loadQuickLink(fid)
{
	//alert(fid);
	if(xmlHttp==null)
	{
		xmlHttp=getHTTPObject();
	}
	xmlHttp.open("GET",url+"?do=loadQuickLink&fid="+fid,true);
	xmlHttp.send(null);	
	
	xmlHttp.onreadystatechange=showQuickMenu;
}
and here is the response handler:


Code:
function showQuickMenu()
{
	alert(xmlHttp.responseText);
//	if(xmlHttp.responseText.length!=0)
//	{
		document.getElementById('quick_post_link').style.display="block";
		document.getElementById('quick_post_link_').style.display="block";
		//document.getElementById('quick_post_link').className='vbmenu_control';
		document.getElementById('quick_post_link_').className='vbmenu_control';
		document.getElementById('quick_post_link').innerHTML=xmlHttp.responseText;
//	}
}


as i said It's working fine when i open the page, but doesn't work properly after page refresh...

code seems to be fine caz it's workign fine on Firefox, please help me with this...