Hi EveryBody
I have 1 Htm file start.htm with followin
java script
function validateLogin() {
1.var Text1 = document.getElementById("Text1").value;
2.alert('Text1 = '+Text1);
3.var url = "http://localhost:8080/esb/AJAXUtil?Text1="+Text1;
4.xmlHttp.open("POST",url);
5.xmlHttp.onreadystatechange = callback;
6.xmlHttp.send(null);
}
function callback() {
7.alert('callback');
8.if(xmlHttp.readyState == 4) {
9.if (xmlHttp.status == 200) {
10.var response = xmlHttp.responseText;
11.alert ('response = '+response);
}
}
}
The above is the ajax implementation and work good if I rename the file to index.jsp put it to the root folder of the application.
But in my scenerio I have to put the file in somewhere else.
I get error in javascript in line 4.
Please suggest me the solution.
In other
word I re explain my problem as.
I have an html page running on q-matic server. I wnat to connect to 1 of my
servlet on
tomcat to verify the telephone no.
Thank You
Syed Saifuddin