Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center

Undefined - is mostly all I get.

  •  03-31-2007, 11:15 AM

    Undefined - is mostly all I get.

    My Editor now just comes up with the word "undefined" in the text area.
     
    Here's my current best guess.
     
    My configuration:
       Dim editor1
       Set editor1 = New CuteEditor
       editor1.ID = "Description"
       editor1.Text = sDescription
       editor1.FilesPath = "../CuteEditor_Files"
       editor1.AutoConfigure = "Enersold"
       editor1.Width = 600
       editor1.EditorOnPaste = "PasteWord"
       editor1.EditorWysiwygModeCss = "css/CuteEditor.css"
       editor1.ShowBottomBar = false
       editor1.Draw()
     
    For persistance I'm now calling this little script when I refresh the page:
    If request.QueryString("postback") = "true" then
    sDescription = Request.Form("Description")
    End if
    If I use the editor in Firefox it works great.
    If I replace the editor with the following text area, it works too.
    Response.Write "<TEXTAREA NAME=""Description"" ROWS=""13"" COLS=""50"">" & Server.HTMLEncode(sDescription) & "</TEXTAREA>"
    But in IE I only see the word 'undefined' appear in the text box. If I clear the box and type something new, when I do the callback I get the 'undefined' showing up, and the sDescription still contains whatever it held before I used the IE browser.
     
    The editor parameters all seem to be working as planned - the layout of the editor is exactly as I want it.
    It just won't work in IE 6 or 7
    I suspect the clients will be wanting to take my life in a day or two......
     
    thanks all
     
    Doug
     
     


     
     
     
     
     
    My Editor now just comes up with the word "undefined" in the text area.
     
    Here's my configuration:
     
       dim content
       content = "This ought to make it in there"
       
       Dim editor1
       Set editor1 = New CuteEditor
       editor1.ID = "Description"
    '   editor1.Text = content
       editor1.Text = "Say something - anything!! Please!!!"
       editor1.FilesPath = "../CuteEditor_Files"
       editor1.AutoConfigure = "Enersold"
       editor1.Width = 600
    '   editor1.EditorOnPaste = "PasteWord"
       editor1.EditorWysiwygModeCss = "css/CuteEditor.css"
       editor1.ShowBottomBar = false
       editor1.Draw()
     

    As you see I've tried a couple of whacks at just bashing some text straight in. No luck!

    Elsewhere on my page (all written alas in confusing server side vbScript) I've tried a form.onsubmit script that looks like this:
     

    Response.Write vbCrLf & vbCrLf & "<script language=""JavaScript"">" & vbCrLf
    Response.Write "<!--" & vbCrLf
    Response.Write "function LoadCute() {" & vbCrLf
    Response.Write "    obj_Description.setHTML(""Say Hello or ANYTHING!"")" & vbCrLf
    Response.Write " " & vbCrLf
    Response.Write "} " & vbCrLf 
    Response.Write "// -->" & vbCrLf
    Response.Write "</script>" & vbCrLf

    But calling it does nothing.

    However, from a child window I am able to go:
    opener.obj_Description.setHTML(htmlcode);
    where htmlcode is sucked out of a textarea, AND IT WORKS!
     
    Any time I try to refresh the page or post it to itself I lose whatever was in there, and just get ....
     
    undefined
     
     
    Any suggestions greatfully appreciated. 
     
    *****************************************************************
     
    NEW - a postscript!!
     
    It works great in Firefox it's only the nasty IE (I've tried IE6 and IE7)
     
    Now I'm even more confused!

     
     
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems