cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Boksa <>
Subject CForms JavaScript loading + execution error
Date Thu, 09 Jul 2009 09:27:36 GMT
Hi List,

I need help with a strange problem regarding some CForm stuff (might  
be a more general problem though):

When I repeatedly reload a page containing different resources used by  
CForms I once in a while (like 1 out of 30 times) get the following  

WARNING: _editor_url is not set!  You should set this variable to the  
editor files path; it should preferably be an absolute path, like in '/ 
htmlarea', but it can be relative if you prefer.  Further we will try  
to load the editor files correctly but we'll probably fail.

However the head of the page contains the following code:

<script type="text/javascript">_editor_url = "/cocoon-forms-impl/ 
resource/external/forms/htmlarea/";_editor_lang = "de";</ 
script><script src="/cocoon-forms-impl/resource/external/forms/ 
htmlarea/htmlarea.js" type="text/javascript"></script>

This should clearly set "_editor_url" before loading (and executing)  
htmlarea.js, so the error above should not happen, right? Or is it a  
more general problem with the order in which JavaScripts get executed?  
(JavaScripts should get executed in the order of the <script>-tags  
unless using defer, right?)

Just to make sure you understand why this is a problem for me: The  
error might pop up the first time the page is called, which really is  
a bad thing.

Any ideas what might cause this strange behaviour? Is it a cocoon- 
specific bug/problem? If you need further information let me know.  
Thanks in advance for your help, I really hope you can help me with  

Best Regards

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message