Multiple URL in AJAX
I want to get the the value count in another JSP. Here's my code...
function showTaxtype(str){
if (typeof XMLHttpRequest != "undefined"){
xmlHttp= new XMLHttpRequest();
}
else if (window.ActiveXObject){
xmlHttp= new ActiveXObject("Microsoft.XMLHTTP");
}
if (xmlHttp==null){
alert("Browser does not support XMLHTTP Request")
return;
}
var url="http://localhost:8080/context/servlet-test2.jsp";
url +="?count=" +str;
xmlHttp.onreadystatechange = taxtypeChange;
xmlHttp.open("GET", url, true);
xmlHttp.send(null);
}
example I want to this get the value to var
url="http://localhost:8080/context/servlet-test3.jsp";