cuteeditor via ajax

Last post 03-23-2009, 2:05 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  03-19-2009, 11:53 AM 50098

    cuteeditor via ajax

    I'm trying to get CuteEditor to work via AJAX again.
     
    I've set my page up just like your AJAX example.
     
    I have a table cell that the Editor will be placed in named 'timelineEditor'
     
    in my javascript I call this:
    1. new Ajax.Request("modules/buscal/detail/getTimelineEditor.php", {   
    2.      method: 'get',   
    3.      onSuccess: function (transport) {   
    4.       $('timelineEditor').update(transport.responseText);   
    5.      },   
    6.      onFailure: busCal.gotFailure.bind(this)   
    7.      });  
    It successfully calls the getTimelineEditor file, and puts the "editor" in the table cell.  But I'm still plagued with the "The requested URL /core/CuteEditor_Files/template.php was not found on this server." error
     
    My php code in getTimelineEditor looks like this...
    1. <?php   
    2.   
    3. require_once('../../../core/CuteEditor_Files/include_CuteEditor.php');   
    4. $cEditor = new CuteEditor();   
    5. $cEditor->ID = 'newTimelineNotes';   
    6. $cEditor->AutoConfigure = CoachFlex;   
    7. $cEditor->FilesPath = "../../../core/CuteEditor_Files";   
    8. $cEditor->ShowCodeViewToolBar = false;   
    9. $cEditor->ThemeType = "Office2003_BlueTheme";   
    10. $cEditor->UseFontTags=false;   
    11. $cEditor->Width = "100%";   
    12. $cEditor->EditorOnPaste = "PastePureText";   
    13. $cEditor->EditorBodyStyle = "font: normal 0.75em Arial;";   
    14. $cEditor->BreakElement="Br";   
    15. $cEditor->EnableStripScriptTags=true;   
    16. $cEditor->ShowPreviewMode = false;   
    17. $cEditor->ShowTagSelecter = false;   
    18. $cEditor->MaxHTMLLength = 65535;   
    19.        
    20. ?>   
    21. <div>   
    22.     <p>   
    23.         <?php $cEditor->Draw(); $cEditor = null; /* Inserts and initializes the textarea */ ?>   
    24.     </p>   
    25. </div>      
    Can someone help me figure out what's going on?
     
    Thanks,
    -David
     
  •  03-23-2009, 2:05 PM 50197 in reply to 50098

    Re: cuteeditor via ajax

View as RSS news feed in XML