`
shelllgd
  • 浏览: 30064 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
阅读更多
function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return xmlHttp;
}


var url = "";
url = "jkhtAjaxAction.do?operFlag=checkSave
xmlHttp = createXMLHttpRequest();
xmlHttp.onreadystatechange = function handleStateChange() {
if (xmlHttp.readyState == 4) {
	if (xmlHttp.status == 200) {
	                           var value = xmlHttp.responseText;
	  			    }
				}
			};
xmlHttp.open("GET", url, true);
xmlHttp.send(null);


response.setContentType("text/html");
response.setHeader("Cathe-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
if ("checkSave".equals(operFlag)) {}
response.getWriter().println(returnflag);
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics