discuz 论坛 解决投票后不返回,提示AJAX错误的折中解决办法 common.js错误
2012-04-11 11:21
513 查看
官方不解决,我们自己想办法解决吧,在正式版出来之前,解决方案如下:
misc.php行298
修改为:
if(!empty($inajax)) {
showmessage('thread_poll_succeed', "viewthread.php?tid=$tid");
} else {
showmessage('thread_poll_succeed', "viewthread.php?tid=$tid");
}
复制代码
找到文件include/js/common.js,在行890处,即在
行:
if(s != '' && s.indexOf('ajaxerror') != -1) {
复制代码
之上,添加:
if(s==null) {
if(typeof submithandle_mods =='function')
{submithandle_mods(window.location.href);}
else
{location.href=window.location.href}
}
复制代码
大家测试下,我测试可以了。。仅供参考
misc.php行298
修改为:
if(!empty($inajax)) {
showmessage('thread_poll_succeed', "viewthread.php?tid=$tid");
} else {
showmessage('thread_poll_succeed', "viewthread.php?tid=$tid");
}
复制代码
找到文件include/js/common.js,在行890处,即在
行:
if(s != '' && s.indexOf('ajaxerror') != -1) {
复制代码
之上,添加:
if(s==null) {
if(typeof submithandle_mods =='function')
{submithandle_mods(window.location.href);}
else
{location.href=window.location.href}
}
复制代码
大家测试下,我测试可以了。。仅供参考
相关文章推荐
- Jquery form.js文件上传返回JSON数据,在IE下提示下载文件的解决办法,并对返回数据进行正确的解析
- 解决SupeSite聚合Discuz提示论坛路径设置错误
- 解决$.ajax()请求异常~ jQuery提示parsererror错误解决办法
- phpmyadmin安装时提示:Warning: require_once(./libraries/common.inc.php)错误解决办法
- 高德地图Android错误码1008、32和7;错误提示invalid_user_scode;返回key鉴权失败的解决办法
- ajax json jQuery提示parsererror错误解决办法
- jQuery:Ajax提示parsererror错误的解决办法
- kies进入APPS的时候,提示:【远程服务器返回错误:(502)错误的网关】解决办法
- 解决$.ajax()请求异常 jQuery提示parsererror错误解决办法
- 运行js提示库没有注册错误8002801d的解决办法
- Delphi 10-10.2.2启动提示JS错误的解决办法
- 前端开发ajax请求失败或错误提示的解决办法
- 打开文档附件不弹出提示框/js 错误解决办法
- Discuz!教程之应用中心安装插件提示“数据下载错误(105)”的解决办法
- 运行js提示库没有注册错误8002801d的解决办法
- 解决$.ajax()请求异常~ jQuery提示parsererror错误解决办法
- phpmyadmin安装时提示:Warning: require_once(./libraries/common.inc.php)错误解决办法
- VMware虚拟机启动Ubuntu时提示piix4_smbus: Host SMBus controller not enabled错误的解决办法(转载)
- 解决js数据包含加号+通过ajax传到后台时出现连接错误
- SQL Server 备份时提示无法打开备份设备的错误解决办法