FCKeditor expertise søges
Kan simpelthen ikke få fckeditoren frem jeg får en fejl med at siden ikke kan vises - det er editoren der ikke kommer frem:<!-- #Include file=forbindelse.asp -->
<!-- #INCLUDE file=../fckeditor/fckeditor.asp -->
<body background="baggrund.jpg" onload="initeditor()">
<form action=sideretnu.asp method=post>
<%
' Automatically calculates the editor base path based on the _samples directory.
' This is usefull only for these samples. A real application should use something like this:
' oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
Dim sBasePath
sBasePath = Request.ServerVariables("PATH_INFO")
sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/fckeditor/"
'oFCKeditor.Value = "<p>This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
oFCKeditor.Create "FCKeditor1"
%>
<%
dim oRec, SQL, ID, strConnect, side, tekst
ID = request.queryString("ID")
side = request.querystring("side")
tekst = request.querystring("tekst")
SQL = "Select * from sider where ID=" & ID
set oRec = server.createobject("ADODB.Recordset")
oRec.open SQL, strConnect
Response.write "<tr><td><input type=hidden value='" & trim(oRec("ID")) & "'name=" & oRec("ID").name &"></td></tr><br><br>"
Response.write "<tr><td><strong>Tekst:</strong><br> <textarea rows='20' name='tekst' cols='120'>" & oRec(2) & "</textarea></td></tr><br><br>"
oRec.close
set oRec = nothing
%>
<input type=submit value=Ret>
</form>
