主题: 关于editor.sync(); 的疑问
作者: 茶叶蛋, 发布日期: 2011-11-24 14:36:00, 浏览数: 7398
以下的代码在xp系统上IIS5.1上运行正常,再复杂的表格也能发布,但是一放到Win2003的IIS6.0中 就不行可,现有一个表格为70行,全部复制无法发送 就卡住了也没有错误提示(据我的判断是在editor.sync()这里卡住的),复制前40行发送没有问题,这是怎么回事 ,肯定不是数据库数据类型的问题,因为我在xp 和 2003中用的是一个库
	<link rel="stylesheet" href="../editor/themes/default/default.css" />
	<link rel="stylesheet" href="../editor/plugins/code/prettify.css" />
	<script charset="utf-8" src="../editor/kindeditor.js"></script>
	<script charset="utf-8" src="../editor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="../editor/plugins/code/prettify.js"></script>

<script>
        var editor;
        KindEditor.ready(function(K) {
                editor = K.create('#editor_8', {
                        resizeType : 0,
                        cssPath : '../editor/plugins/code/prettify.css',
						uploadJson : '../editor/asp/upload_json.asp',
						fileManagerJson : '../editor/asp/file_manager_json.asp',
						allowFileManager : true						
                });
        });
</script>



 <form name="frmAdd" method="post">

<textarea id="editor_8" name="MContent" style="width:700px;height:300px;visibility:hidden;"></textarea>

<INPUT name="btnOK" type="button"  value="提交" onClick="FormSubmit()" title="提交并保存数据">
</form>



function FormSubmit(){
	
editor.sync(); 
document.frmAdd.action="Message.do?Action=AddTypeSave"
document.frmAdd.submit();
	 
}


Function AddTypeSave()

'变量定义	
Dim MTitle,MContent,DeptName,TDeptName,MDate,MType
'取值
MTitle	 =	Trim(Request("MTitle"))
DeptName	 =	Trim(Request("DeptName"))
UserName	 =	Trim(Request("UserName"))
MDate	 =	Trim(Request("MDate"))
MType        =             Trim(request("MType"))
sContent 	 = 	Trim(request("MContent"))

'开始写入表
Set Rs = Server.CreateObject("Adodb.RecordSet")
Sql = "Select  * From [Message] 
Rs.Open Sql,Conn,1,3

	Rs.AddNew
	Rs("MType")         =   MType
	Rs("MTitle")		=	MTitle
	Rs("MContent")		=	sContent
	Rs("DeptName")		=	DeptName
	Rs("TDeptName")		=	0
	Rs("UserName")      =   UserName
	Rs("MDate")         =   MDate
	Rs.Update
	Rs.Close
	Set Rs = Nothing
End Function
作者: ppscream, 发布日期: 2011-11-29 23:34:03

同样的问题

回复
发表新帖 发表回复