I need to send data from my servlet to my html(which contains AJAX), so as per the motivation of the AJAX, this should be done without my webpage reloading / refresh.
my code on the ajax side is something like this:
Code:
var xmlHttp = false;
function getXMLHttpRequest(val) {
try{
xmlHttp = new XMLHttpRequest();
}catch(err1){
try{
Leave a comment: