首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

dwr回调和异常提示的格式

2012-11-22 
dwr回调和错误提示的格式FileManager.bindIp(setip,{callback: function(data){closeSetip()tipLayer.hid

dwr回调和错误提示的格式

FileManager.bindIp(setip,{callback: function(data){closeSetip();tipLayer.hideBox(1);msgLayer.hideBox(1);if(data){bindIp = setip;$('#setip_index').val(bindIp);msgLayer.showBox(0,1,function(thisLayer){var text = thisLayer.find("span");$(text).attr("class","success");$(text).text("IP绑定成功");setTimeout(function(){msgLayer.hideBox(1)},1000);});}else{$('#setip_index').val(bindIp);msgLayer.showBox(0,1,function(thisLayer){var text = thisLayer.find("span");$(text).attr("class","normal");$(text).text("IP绑定失败");setTimeout(function(){msgLayer.hideBox(1)},1000);});}$('#setipId').attr("class","");},errorHandler: function() {$('#setip_index').val(bindIp);closeSetip();msgLayer.showBox(0,1,function(thisLayer){var text = thisLayer.find("span");$(text).attr("class","normal");$(text).text("IP绑定失败");$('#setipId').attr("class","");setTimeout(function(){msgLayer.hideBox(1)},1000);});}});

?

热点排行