Error
Forums »
General discussion
» Error
sadie
Minotaur I.T.
|
2008/05/30 05:11
Dynarch stopped working for me. My DlRteFrame code now gives the following in Firefox: What have I broken, and how can I fix it? na.yomiko is localhost, so don't expect to see it going anywhere. I've confirmed that the file it mentions is able to load correctly. Tracing shows that the error appears to happen on the line in my code that reads: rte.initDesignMode(function() { // using the date.getTime() trick to avoid browser cache rte.loadStyle("jsdoc/samples/rte.css?" + new Date().getTime()); rte.setHTML(content.value); rte.focus(); }); It doesn't run the internal function at all - it throws the error on rte.initDesignMode(). |
mishoo
Dynarch.com
|
2008/05/30 11:33
I've never seen that... Can you attach some test code that shows the error? Or alternatively, can you please send an URL so I can check (use the contact form if you don't want to post it to the forum). DynarchLIB.com |
sadie
Minotaur I.T.
|
2008/05/30 13:27
http://www.minotaur.it/dynarchdemo/editme.html It appears to be caused by the container into which I'm putting the DlLayout.getElement() being hidden. |
mishoo
Dynarch.com
|
2008/05/30 13:45
The first problem is that you have two elements in the DOM with the id "editme". So content = document.getElementById(id) actually gets the DIV, rather than the TEXTAREA. I presume you should have put id="editme_container" on the DIV. Next problem is that you actually want to hide the TEXTAREA, not the container, so you should uncomment content.style.display = "none" and comment out container.style.display = "none". I tried all this and the editor shows up. Also, please specify the path to DynarchLIB, like this: <script> Dynarch_Base_Url = "DynarchLIB/src" </script> Add the line above right before the <script> line that loads thelib.js. DynarchLIB.com |