wilson1000
asked on
ASP VBScript, Firefox, IE6, Trouble intergrating wysiwyg editor!!
I am trying to intergrate a WYSIWYG editor in to my ASP VBScript page - I have tried for such a long time now but really can't work out how to do it.
The editor is to be part of a record set update page. without the editor, the page works fine but when i include it, I get the following error:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/Content_Update.asp, line 175
ofckeditor.Value = "(WADAContent.Fields.Item( "ContentPa geBody").V alue)"
-------------------------- ---------- ---------- ^
I have replaced the default ASP code for the editor from this:
<%
Dim sBasePath
sBasePath = Request.ServerVariables("P ATH_INFO")
sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
Dim ofckeditor
Set ofckeditor = New fckeditor
ofckeditor.BasePath = "/fckeditor/"
ofckeditor.Value = "This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">fckeditor</a>."
ofckeditor.Create "fckeditor1"
%>
To this:
<%
Dim ofckeditor
Set ofckeditor = New fckeditor
ofckeditor.BasePath = "/fckeditor/"
ofckeditor.Value = "(WADAContent.Fields.Item( "ContentPa geBody").V alue)"
ofckeditor.Create "fckeditor1"
%>
I'm pretty sure it the asp code in the ofckeditor.Value part of the code, only thing is I have no idea what I should put there, the code needs to be dynamic because the values are in a record set.
How can I make this work correctly?
Many thanks
The editor is to be part of a record set update page. without the editor, the page works fine but when i include it, I get the following error:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/Content_Update.asp, line 175
ofckeditor.Value = "(WADAContent.Fields.Item(
--------------------------
I have replaced the default ASP code for the editor from this:
<%
Dim sBasePath
sBasePath = Request.ServerVariables("P
sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
Dim ofckeditor
Set ofckeditor = New fckeditor
ofckeditor.BasePath = "/fckeditor/"
ofckeditor.Value = "This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">fckeditor</a>."
ofckeditor.Create "fckeditor1"
%>
To this:
<%
Dim ofckeditor
Set ofckeditor = New fckeditor
ofckeditor.BasePath = "/fckeditor/"
ofckeditor.Value = "(WADAContent.Fields.Item(
ofckeditor.Create "fckeditor1"
%>
I'm pretty sure it the asp code in the ofckeditor.Value part of the code, only thing is I have no idea what I should put there, the code needs to be dynamic because the values are in a record set.
How can I make this work correctly?
Many thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You mean another question here, or create another question?
You can do either anyway, I guess... fire away! If the question is a new one though, it should really be as a new question... if it is related, it may as well go here.
You can do either anyway, I guess... fire away! If the question is a new one though, it should really be as a new question... if it is related, it may as well go here.
ASKER
No worries, i've thought of a better idea.
I was going to ask how i can insert the generated HTML in to the database but i think i'm going to have a link to the editor and then post back to the textarea.
I may submit another question later about posting in to a textarea?? may be a job, we'll see.
Thank you very much for help today :)
I was going to ask how i can insert the generated HTML in to the database but i think i'm going to have a link to the editor and then post back to the textarea.
I may submit another question later about posting in to a textarea?? may be a job, we'll see.
Thank you very much for help today :)
ASKER