Hello, I think if you make use of the code below then you will able to get the solution for your problem:
Code:
var one;
function fun()
{
var url = "<% = oneuest.getContextPath ()%>/ ServletDoGet";
if (window.XMLHttpRequest)
{
one = new XMLHttpRequest();
try
{
one.open("GET", Url, true);
one.onreadystatechange = Function()
{
if (one.readyState == 4)
{
processStateChange();
}
}
}
catch (e)
{
alert(e);
}
one.Send(null);
}
else if (window.ActiveXObject)
{
one = new ActiveXObject("Microsoft.XMLHTTP");
if (one)
{
one.onreadystatechange = ProcessStateChange;
one.open("GET", Url, true);
one.Send();
}
}
Bookmarks