troubleshooting Question

ASP VBScript, Firefox, IE6, Trouble intergrating wysiwyg editor!!

Avatar of wilson1000
wilson1000 asked on
Web DevelopmentASPVB Script
4 Comments1 Solution571 ViewsLast Modified:
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("ContentPageBody").Value)"
----------------------------------------------^

I have replaced the default ASP code for the editor from this:

<%
     Dim sBasePath
     sBasePath = Request.ServerVariables("PATH_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("ContentPageBody").Value)"
      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
purplepomegranite

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros