日期:2014-05-18  浏览次数:20651 次

ajaxanywhere急问
我用ajaxanywhere提交到一个do地址后,这个地址怎么弄都是出来一个下载.do的文件

------解决方案--------------------
tomcat开了么?
------解决方案--------------------
应该是xml的配置文件的问题,帖出来看看
------解决方案--------------------
关注一下。....
------解决方案--------------------
mark,学习一下
------解决方案--------------------
3月份...那是多少版本的?
------解决方案--------------------
function action_check_register_user() {
var f= document.forms[0];
var user = f.username.value;
var email = f.e_mail.value;

if (user== " ") {
window.alert( "请输入用户名! ");
f.user.focus();
return false;
}

if (email== " ") {
window.alert( "请输入用户名e-mail! ");
f.user.focus();
return false;
}
var param = "username= " + user + "& " + "e_mail= " + email;
var url = "/axis/servlet/CheckIsNew? " + param;
//alert(url);

send_request1(url);
}
// send_request to service
function send_request1(url) {
if (window.XMLHttpRequest) {
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
http_request.overrideMimeType( 'text/xml ');
}
} else if (window.ActiveXObject) { //
try {
http_request = new ActiveXObject( "Msxml2.XMLHTTP ");
} catch (e) {
try {
http_request = new ActiveXObject( "Microsoft.XMLHTTP ");
} catch (e) {
}
}
}
if (!http_request) { //
window.alert( "can 't create XMLHttpRequest object. ");
return false;
}
http_request.onreadystatechange = processRequest1;
http_request.open( "GET ", url, true);
http_request.send(null);
}
// fill parameters to TextField
function processRequest1() {
if (http_request.readyState == 4) {
if (http_request.status == 200) {
var isNewStr =http_request.responseText;
if (isNewStr == null || isNewStr == " ")
{
alert( "输入的用户名或者e-mail已经使用 ");
return;
}

if (isNewStr == "1 ") {
alert( "输入的用户名和e-mail可以使用 ");
}