_CState problem on first instance of editor (multiple editors on page)

Last post 02-14-2007, 5:49 AM by Shawn Ramirez. 5 replies.
Sort Posts: Previous Next
  •  02-09-2007, 9:19 PM 26587

    _CState problem on first instance of editor (multiple editors on page)

    I have 4 cuteEdit editors on 1 page.  (The version was downloaded in mid January)
     
    The first of the 4 editors gives me a _CState error and I can not type in the editor.  The other 3 editors do allow me to type in them. 
     
    That indicates to me that the installation is good.  The first editor uses a different config file so that it has different buttons.
     
    In IE7 I get a _CSate error
     
    In Firefox 2.0 I get the following error (but with the same result, the editor looks like it is there but I can't type in it).
    Error: missing ; before statement
    Source File: https://admin.dynacal.com/ramirez/CuteEditor/CuteEditor_Files/Gecko.js.asp?UC=en-en
    Line: 1, Column: 4
    Source Code:
    The area you are attempting to access is forbidden.
     
    Any help would be great.  We are suppose to go live with this in less then a week.
    Shawn Ramirez
  •  02-12-2007, 12:54 PM 26633 in reply to 26587

    Re: _CState problem on first instance of editor (multiple editors on page)

    Shawn,
     
    In the download package, you can find this example:
     
     
    In this example, there are two editors in one page.
     
    Please open this page and add two more editors. Then test it.
     
    If it doesn't work for you, please put this example online and send it to me.
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-12-2007, 1:14 PM 26637 in reply to 26633

    Re: _CState problem on first instance of editor (multiple editors on page)

    I will do as you ask.
     
    I have continue to work on the issue and I believe it has something to do with the include_Security.asp file and the CESecurity session variable.
     
    I say this because on my page with 4 editors on it I 2 errors right now and I can edit within 2 of the editors.  I have modified the code in include_Security.asp so that if Session("CESecurity") is empty I give it a default value.  Before making this edit I would get 4 erorrs (_CState is not defined and a javascript error saying that a ; was required before the "The area you are attempting to access is forbidden" string.
     
    My directory structure the users go through a vitural directory to get to the application.  I don't know if this is causing a problem or not.  All the visual elements are showing fine.
     
    My directory structure is as follows:
    root\calendar\maint
       cuteEditor
    the users get to the application using (each customer has a virtual directory)
    root\archbold.k12\
       cuteEditor
     
    when I look into Server.MapPath(GetURL("Configuration/Security/"&s_SecurityPolicyFile&"")) it does report the correct physical directory of the security file.
     
    Does any of this help?
    Thanks
    Shawn
  •  02-12-2007, 1:31 PM 26638 in reply to 26637

    Re: _CState problem on first instance of editor (multiple editors on page)

    I checked out your example and made changes to my code.
     
    I was using the same instance of your editor and chaging the properties and doing a .draw.
     
    I have changed it to now look like the following
     
    Dim oEditor1
    Set oEditor1 = New CuteEditor
    Dim oEditor2
    Set oEditor2 = New CuteEditor
    Dim oEditor3
    Set oEditor3 = New CuteEditor
    Dim oEditor4
    Set oEditor4 = New CuteEditor
    with oEditor1
       .ID = "txtInfo"
       .Text = oRegForm.InfoMsg
       .FilesPath = "CuteEditor/CuteEditor_Files"
       .EditorBodyStyle = "font:normal 12px arial;"
       .EditorWysiwygModeCss = "asp.css"
       .ImageGalleryPath = oPage.RegistrationGallery
       .MaxHTMLLength = 7900
       .ThemeType="Office2003"
       .AutoConfigure = "DCReg1"
       .Draw()
     end with
     
     
    with oEditor2
       .ID = "txtClosedMsg"
       .Text = oRegForm.ClosedMsg
       .FilesPath = "CuteEditor/CuteEditor_Files"
       .EditorBodyStyle = "font:normal 12px arial;"
       .EditorWysiwygModeCss = "asp.css"
       .ImageGalleryPath = oPage.RegistrationGallery
       .MaxHTMLLength = 7900
       .height = 180
       .ThemeType="Office2003"
       .AutoConfigure = "DCReg1"
       .Draw()
    end with
     
    with oEditor3
       .ID = "txtPaymentMsg"
       .Text = oRegForm.PaymentMsg
       .FilesPath = "CuteEditor/CuteEditor_Files"
       .EditorBodyStyle = "font:normal 12px arial;"
       .EditorWysiwygModeCss = "asp.css"
       .ImageGalleryPath = oPage.RegistrationGallery
       .MaxHTMLLength = 7900
       .height = 180
       .ThemeType="Office2003"
       .AutoConfigure = "DCReg1"
       .Draw()
    end with
     
    with oEditor4
     .ID = "txtThankYou"
     .Text = oRegForm.ThankYouMsg
     .FilesPath = "CuteEditor/CuteEditor_Files"
     .EditorBodyStyle = "font:normal 12px arial;"
     .EditorWysiwygModeCss = "asp.css"
     .ImageGalleryPath = oPage.RegistrationGallery
     .MaxHTMLLength = 7900
     .height = 180
     .ThemeType="Office2003"
     .AutoConfigure = "DCReg1"
     .Draw()
    end with
     
     
    oPage.RegistrationGallery points to /calendar/maint/Org_Gallery/archbold.k12/RegistrationGallery
     
     
    What I don't get is why I can refresh my page and sometimes it will work. 
  •  02-13-2007, 9:59 AM 26667 in reply to 26638

    Re: _CState problem on first instance of editor (multiple editors on page)

  •  02-14-2007, 5:49 AM 26692 in reply to 26667

    Re: _CState problem on first instance of editor (multiple editors on page)

    When I try the example it does work without errors.

    However, in my pages I still get the following error "The area you are attempting to access is forbidden"

    So I put the following lines of code into the include_Security.asp file just below the line "CESecurity = Session("CESecurity") ".
    I don't understand why I get this error but in my case I can override the security with a default because of security being taken care of within my app.  After putting in the following code I don't get the error any more.  I will have to wait a few days to see if my clients are still getting errors or not.


       if len(CESecurity) = 0 then  '3.20.12.8 2/12/2007 Added this in
         CESecurity = "1000|100000|100|1000|1000|/calendar/maint/Org_Gallery/" & oPage.OrgPath & "/RegistrationGallery|/uploads|/uploads|/uploads|/uploads|true|true|true|true|.jpg,.jpeg,.gif,.png,|.avi,.mpg,.mpeg,.mp3,.wav,|.txt,.doc,.pdf,.zip,.rar,.avi,.mpg,.mpeg,.htm,.jpg,.jpeg,.gif,.png,.mp3,.wav,|"
       end if

View as RSS news feed in XML