问题描述:
修改回复帖,点"确认修改"无反应,同时提示脚本出错
解决方法
请用编辑工具打开config/guestbook.xml
找到
function EditSave(id){
ajaxReadText('edit.asp','editok(obj)','action=save&type='+currtype+'&id='+id+'&title='+escape(document.getElementById('etitle').value)+'&content='+escape(FCKeditorAPI.GetInstance('Content'+id).GetXHTML()));
}
并替换成以下代码
function EditSave(id){
if (currtype==1)
{ ajaxReadText('edit.asp','editok(obj)','action=save&type='+currtype+'&id='+id+'&title='+escape(document.getElementById('etitle').value)+'&content='+escape(FCKeditorAPI.GetInstance('Content'+id).GetXHTML()));
}else{ ajaxReadText('edit.asp','editok(obj)','action=save&type='+currtype+'&id='+id+'&content='+escape(FCKeditorAPI.GetInstance('Content'+id).GetXHTML()));
}
}
最好请到后台更新下缓存