六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 79|回复: 0

DWR局部刷新时遇到的问题

[复制链接]

升级  1.33%

12

主题

12

主题

12

主题

秀才

Rank: 2

积分
52
 楼主| 发表于 2013-1-23 02:40:53 | 显示全部楼层 |阅读模式
近期,我在用Ajax的框架DWR时,遇到了个问题.即有时会弹出一个alert()对话框出来,里面的内容为:A server error has occured. More information may be available in the console.看了下代码,知道是从engine.js里面发出的,dwr.engine.defaultErrorHandler = function(message, ex) {  dwr.engine._debug("Error: " + ex.name + ", " + ex.message, true);  if (message == null || message == "") alert("A server error has occured. More information may be available in the console.");  // Ignore NS_ERROR_NOT_AVAILABLE if Mozilla is being narky  else if (message.indexOf("0x80040111") != -1) dwr.engine._debug(message);  else alert(message);};但却不知道问题是如何发生的,怎么解决?二,用DWR如何进行局部刷新,如何保证变量会动态的跟随DWR查询结果而变化,咱用DWR是个新手,出现这个问题不知道怎么解决
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表