We help IT Professionals succeed at work.

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

wilson1000 asked
Last Modified: 2013-11-19
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
Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)


Can i except that as a solution and then ask another question?
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.


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 :)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.