var xmlhttp;
                     function LoadXmlDoc(url){
                     xmlhttp = null;
                     if(window.XMLHttpRequest){ //code for all new browsers
                         xmlhttp=new XMLHttpRequest();
                     }else if(window.ActiveXObject){//IE5 and IE6
                         xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
                     }
                    if(xmlhttp!=null){
                        xmlhttp.onreadystatechange=function (){
                            if(xmlhttp.readyState==4){ // loaded ...
                                if(xmlhttp.state==200){
                                    //success,...our code here ...
                                }else{
                                    alert('Problem retrieving XMl data');
                                }
                            }
                         }
                    }
                 }

相关文章:

  • 2022-12-23
  • 2023-03-31
  • 2021-07-30
  • 2021-04-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2021-06-22
  • 2022-12-23
  • 2021-06-01
  • 2021-08-25
相关资源
相似解决方案