mohammad_pro
پنج شنبه 28 اردیبهشت 1391, 10:49 صبح
دوستان مشکل این کد چیه
نمیتونه servleto پیدا کنه
<script type="text/javascript">
var xmlHttp;
var xmlHttp;
function ch(s1) {
alert(s1);
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 = "/src/net/roseindia/web/pop";
url += "?tpl=" + s1;
xmlHttp.onreadystatechange = TplChange;
xmlHttp.open("POST", url, true);
xmlHttp.send(null);
}
function TplChange() {
//alert(srt);
if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") {
// var popu="<option value='"+str+"'>"+str+"</option>";
//document.getElementById("StartTerminationPoint").innerHTML = pop;
document.getElementById("StartTerminationPoint").innerHTML = xmlHttp.responseText;
alert(xmlHttp.responseText);
}
}
نمیتونه servleto پیدا کنه
<script type="text/javascript">
var xmlHttp;
var xmlHttp;
function ch(s1) {
alert(s1);
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 = "/src/net/roseindia/web/pop";
url += "?tpl=" + s1;
xmlHttp.onreadystatechange = TplChange;
xmlHttp.open("POST", url, true);
xmlHttp.send(null);
}
function TplChange() {
//alert(srt);
if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") {
// var popu="<option value='"+str+"'>"+str+"</option>";
//document.getElementById("StartTerminationPoint").innerHTML = pop;
document.getElementById("StartTerminationPoint").innerHTML = xmlHttp.responseText;
alert(xmlHttp.responseText);
}
}