0
你好我試圖檢索使用可無需刷新另一種形式的ajax文本框的值,但它不工作如何檢索文本框的值阿賈克斯爲另一種形式
這裏是我的代碼
<script>
function sendsms() {
var exam = new XMLHttpRequest();
exam.onreadystatechange = function() {
if (exam.readyState == 4) {
document.getElementById("RightPaneContainerDiv").innerHTML = exam.responseText;
}
}
exam.open("GET", "freetrailsend.php?message=" + document.getElementById("cwc").value,"service=" + document.getElementById("dropdown").value, true);
exam.send(null)
return false;
}
</script>
我哪裏錯了這段代碼
任何幫助將不勝感激
不要忘了編碼這些URI組件,使特殊字符不搞砸:http://stackoverflow.com/a/332888/759924 – Alex 2014-09-10 10:10:36
@anilkumar ...我想以上答案將解決您的問題,如果需要更多的幫助,然後評論... – 2014-09-10 10:21:40
這不工作 – 2014-09-10 11:16:35