当前位置:编程学习 > asp >>

在asp中的fckeditor出现错误,急忙!!在线等。。。

各位高手帮忙。。 要已有数据库里面的内容编辑时fckeditor被隐藏起来不显示,帮忙我看一下。。 <% dim Inf_Id Inf_Id=request.QueryString("Inf_Id") set rsinf = server.createobject("adodb.recordset") prosql = "select * from Inf_Mian where Inf_Id="&Inf_Id rsinf.open prosql,conn,1,1%> <div> <script type="text/javascript" src="fckeditor.js"></script> <script type="text/javascript"> var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ; var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; oFCKeditor.BasePath = sBasePath ; oFCKeditor.Value = '<%= rsinf("Inf_Mian")%> ' ; ///这是已有的内容 oFCKeditor.Create() ; //--> </script> </div>
追问:判断一下还是不行啊!!
去掉了这行的oFCKeditor.Value= '<%= rsinf("Inf_Mian")%> ' ; 这个<%= rsinf("Inf_Mian")%>
记录集后是正常的,但是我要显示内容啊
答案:<% dim Inf_Id
Inf_Id=request.QueryString("Inf_Id")
set rsinf = server.createobject("adodb.recordset")
prosql = "select * from Inf_Mian where Inf_Id="&Inf_Id
rsinf.open prosql,conn,1,1%>
<div>
<script type="text/javascript" src="fckeditor.js"></script>
....
</script>
</div>

你直接在外面判断一下就是了呗...
<%if not rsinf.EOF and not rsinf.BOF then%>
<div>
<script>...原fck代码可以不动...</scitp>
</div>
<%end if%>

上一个:求高人帮忙看一下此asp代码是否有错
下一个:asp.net三层架构代码生成器是拿来干啥的

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,