Last active
August 11, 2021 11:46
-
-
Save shiv122/91582bc6f4c48957fd578aa92798e993 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function loadDoc() { | |
var data = new FormData(); | |
data.append('id', id); | |
var xhttp = new XMLHttpRequest(); | |
xhttp.onreadystatechange = function() { | |
if (this.readyState == 4 && this.status == 200) { | |
document.getElementById("demo").innerHTML = this.responseText; | |
} | |
}; | |
xhttp.open("POST", "fileName.php", true); | |
xhttp.send(); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment