Jump to content

about ajax in asp.net xml.open


sign_seventh

Recommended Posts

function getCities(obj){ var oXmlHttp = createXMLHttp();	 oXmlHttp.open("GET", "GetCities.aspx?StateInitials=" +obj.value, true); oXmlHttp.onreadystatechange = function()  {   	  if(oXmlHttp.readyState == 4)	{		if(oXmlHttp.status == 200)		{			displayMsg(oXmlHttp.responseText);		}else		{			displayMsg("An error occurred:" + oXmlHttp.statusText);		}	}} oXmlHttp.send("");	}

the page is not opening oXmlHttp.open("GET", "GetCities.aspx?StateInitials=" +obj.value, true);and there is no error in my javascript.. what could be the problem?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...