ajax
来源:互联网 发布:表单大师能做多少数据? 编辑:程序博客网 时间:2024/05/18 14:26
function fill(){
if(){
alert("");
return ;
}
if(){
alert("");
return ;
}
if(){
alert("");
return ;
}
var id= ;
if(id!=null){
var url = "<%=path%>/test/test!test.action";
var params = "personId=" + id.value;
var myAjax = new Ajax.Request(
url,
{
method: 'post',
parameters: params,
onComplete: Completes
}
);
}
}
function Completes(request){
var action = request.responseText.parseJSON();
var wei= action.wei;
if(wei==null){
alert();
return;
}
window.location.href="<%=path%>/wei/weiManagerAction!detailDoctor.action?personId="+weit.personId+"&counter="+weight.counter;
}
if(){
alert("");
return ;
}
if(){
alert("");
return ;
}
if(){
alert("");
return ;
}
var id= ;
if(id!=null){
var url = "<%=path%>/test/test!test.action";
var params = "personId=" + id.value;
var myAjax = new Ajax.Request(
url,
{
method: 'post',
parameters: params,
onComplete: Completes
}
);
}
}
function Completes(request){
var action = request.responseText.parseJSON();
var wei= action.wei;
if(wei==null){
alert();
return;
}
window.location.href="<%=path%>/wei/weiManagerAction!detailDoctor.action?personId="+weit.personId+"&counter="+weight.counter;
}