XmlhttpExample demo Best Examples

XmlhttpExample demo Ajax


<script>
function toggleverify(deleteids,id)
                  {
                     
                      loadXMLDoc(deleteids,id);
                  }
                  function loadXMLDoc(deleteids,id)
                  {
                         
                  var xmlhttp;
                  if (window.XMLHttpRequest)
                    {// code for IE7+, Firefox, Chrome, Opera, Safari
                    xmlhttp=new XMLHttpRequest();
                    }
                  else
                    {// code for IE6, IE5
                    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
                    }
                  xmlhttp.onreadystatechange=function()
                    {
                    if (xmlhttp.readyState==4 && xmlhttp.status==200)
                      {
                      document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
                      }
                    }
                  xmlhttp.open("GET","toggle.php?ids="+deleteids+"&i="+id,true);
                  xmlhttp.send();
                  }

           </script>

Share on Google Plus

About quora Questions & Answers A-Z

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment