I'm working on integrating FCKEditor with Ruby on Rails, and I've ran into a strange problem. Currently, I've only implemented the GetFoldersAndFiles call, and it's returning proper xml. The javascript is not recognizing it as such, however. I even have made it so that it passes back the sample xml found at:
http://wiki.fckeditor.net/Developer's_G ... on#Browser
The javascript will not recognize this either. Is there someway to make it just display the raw response to make sure that it's getting the same thing my test cases are getting?
The specific errors I recieve are as follows:
In Internet Explorer:
Line 118 Object Required File: frmresourceslist.html
In Firefox:
Error: this.DOMDocument has no properties
Source File: /browser/default/js/fckxml.js
Line: 99
I have version 2.0 of the Editor.
Any help you can provide will be greatly appreciated.
Thanks,
Josh
Mon, 09/12/2005 - 10:34
#1
RE: Custom File Browser Weird Behavior
I changed the following line in 'fckxml.js'
oFCKXml.DOMDocument = oXmlHttp.responseXML ;
to
oFCKXml.DOMDocument = '<?xml version="1.0" encoding="utf-8" ?><Connector command="GetFoldersAndFiles" resourceType="File"><CurrentFolder path="/Samples/Docs/" url="/UserFiles/File/Samples/Docs/" /><Folders><Folder name="Documents" /><Folder name="Files" /></Folders><Files><File name="XML Definition.doc" size="14" /><File name="Samples.txt" size="5" /><File name="Definition.txt" size="125" /><File name="External Resources.drw" size="840" /><File name="Todo.txt" size="2" /></Files></Connector>';
and I recieve the same errors. I don't know what else I can do...
RE: Custom File Browser Weird Behavior
RE: Custom File Browser Weird Behavior