c#AJAX 用户已注册

来源:百度知道 编辑:UC知道 时间:2024/07/16 04:36:36
JS 部分
<script>
var xmlHttp=false;
try {
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (_e) {

try {
xmlHttp = new ActivrXobject("Microsoft.XMLHTTP");
} catch (_E) { }
}

if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
try {
xmlHttp = new XMLHttpRequest();
}
catch (e) {
xmlHttp = false;
}
}
function checktextbox1() {
var TextBox1 = document.getElementById("TextBox1").value;
if (TextBox1 == "") {
t1.innerHTML = "不能为空";
}
else if (TextBox1 != ""

js:
<script>
var xmlHttp=false;
try {
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (_e) {

try {
xmlHttp = new ActivrXobject("Microsoft.XMLHTTP");
} catch (_E) { }
}

if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
try {
xmlHttp = new XMLHttpRequest();
}
catch (e) {
xmlHttp = false;
}
}
function checktextbox1() {
var TextBox1 = document.getElementById("TextBox1").value;
if (TextBox1 == "") {
t1.innerHTML = "不能为空";
}
else if (TextBox1 != "