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:
- new Ajax.Request("modules/buscal/detail/getTimelineEditor.php", {
- method: 'get',
- onSuccess: function (transport) {
- $('timelineEditor').update(transport.responseText);
- },
- onFailure: busCal.gotFailure.bind(this)
- });
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...
- <?php
-
- require_once('../../../core/CuteEditor_Files/include_CuteEditor.php');
- $cEditor = new CuteEditor();
- $cEditor->ID = 'newTimelineNotes';
- $cEditor->AutoConfigure = CoachFlex;
- $cEditor->FilesPath = "../../../core/CuteEditor_Files";
- $cEditor->ShowCodeViewToolBar = false;
- $cEditor->ThemeType = "Office2003_BlueTheme";
- $cEditor->UseFontTags=false;
- $cEditor->Width = "100%";
- $cEditor->EditorOnPaste = "PastePureText";
- $cEditor->EditorBodyStyle = "font: normal 0.75em Arial;";
- $cEditor->BreakElement="Br";
- $cEditor->EnableStripScriptTags=true;
- $cEditor->ShowPreviewMode = false;
- $cEditor->ShowTagSelecter = false;
- $cEditor->MaxHTMLLength = 65535;
-
- ?>
- <div>
- <p>
- <?php $cEditor->Draw(); $cEditor = null; ?>
- </p>
- </div>
Can someone help me figure out what's going on?
Thanks,
-David