You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Doug Chestnut <dh...@virginia.edu> on 2005/10/12 15:16:58 UTC

javascript errors when calling usecases in 1.4

I am getting the following javascript errors when calling edit.bxe:

Error: Cocoon is not defined
Source File: /cforms/js/cforms.js  Line: 23

Error: forms_onload is not defined

Is this related to the cforms usecase integration.  Seems like a 
javascript file might be missing?  Bitflux does not open.

--Doug


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: javascript errors when calling usecases in 1.4

Posted by Felix Röthenbacher <fe...@wyona.com>.
Hi Doug

Thanks, that was the other issue I was preparing a patch for :-)
The other patch is on the way ...

- Felix


Doug Chestnut wrote:
> Hi Felix,
> 
> I found that /cforms/ajax/js/cocoon-ajax.js was returning a 404,
> I was able to fix that by adding:
> 
> Index: src/webapp/global-sitemap.xmap
> ===================================================================
> --- src/webapp/global-sitemap.xmap    (revision 314867)
> +++ src/webapp/global-sitemap.xmap    (working copy)
> @@ -126,6 +126,13 @@
>        </map:match>
>      </map:pipeline>
> 
> +    <!-- ajax -->
> +    <map:pipeline>
> +      <map:match pattern="cforms/ajax/**">
> +        <map:read src="resource://org/apache/cocoon/ajax/resources/{1}"/>
> +      </map:match>
> +    </map:pipeline>
> +
>      <!-- cforms -->
>      <map:pipeline>
>        <map:match pattern="cforms/**">
> 
> 
> I still get the "forms_onload is not defined" error though.
> 
> thanks,
> --Doug
> 
> 
> Felix Röthenbacher wrote:
> 
>> Hi Doug
>>
>> You are right, it's related to the cforms integration yesterday.
>> I'll file a bug and append a patch that will fix this issue.
>>
>> Sorry for the troubles ...
>>
>> - Felix
>>
>>
>> Doug Chestnut wrote:
>>
>>> I am getting the following javascript errors when calling edit.bxe:
>>>
>>> Error: Cocoon is not defined
>>> Source File: /cforms/js/cforms.js  Line: 23
>>>
>>> Error: forms_onload is not defined
>>>
>>> Is this related to the cforms usecase integration.  Seems like a 
>>> javascript file might be missing?  Bitflux does not open.
>>>
>>> --Doug
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>
>>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
> 
> 

-- 
Felix Röthenbacher                  felix.roethenbacher@wyona.com
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: javascript errors when calling usecases in 1.4

Posted by Doug Chestnut <dh...@virginia.edu>.
Hi Felix,

I found that /cforms/ajax/js/cocoon-ajax.js was returning a 404,
I was able to fix that by adding:

Index: src/webapp/global-sitemap.xmap
===================================================================
--- src/webapp/global-sitemap.xmap	(revision 314867)
+++ src/webapp/global-sitemap.xmap	(working copy)
@@ -126,6 +126,13 @@
        </map:match>
      </map:pipeline>

+    <!-- ajax -->
+    <map:pipeline>
+      <map:match pattern="cforms/ajax/**">
+        <map:read src="resource://org/apache/cocoon/ajax/resources/{1}"/>
+      </map:match>
+    </map:pipeline>
+
      <!-- cforms -->
      <map:pipeline>
        <map:match pattern="cforms/**">


I still get the "forms_onload is not defined" error though.

thanks,
--Doug


Felix Röthenbacher wrote:
> Hi Doug
> 
> You are right, it's related to the cforms integration yesterday.
> I'll file a bug and append a patch that will fix this issue.
> 
> Sorry for the troubles ...
> 
> - Felix
> 
> 
> Doug Chestnut wrote:
> 
>> I am getting the following javascript errors when calling edit.bxe:
>>
>> Error: Cocoon is not defined
>> Source File: /cforms/js/cforms.js  Line: 23
>>
>> Error: forms_onload is not defined
>>
>> Is this related to the cforms usecase integration.  Seems like a 
>> javascript file might be missing?  Bitflux does not open.
>>
>> --Doug
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: dev-help@lenya.apache.org
>>
>>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: javascript errors when calling usecases in 1.4

Posted by Felix Röthenbacher <fe...@wyona.com>.
Hi Doug

You are right, it's related to the cforms integration yesterday.
I'll file a bug and append a patch that will fix this issue.

Sorry for the troubles ...

- Felix


Doug Chestnut wrote:
> I am getting the following javascript errors when calling edit.bxe:
> 
> Error: Cocoon is not defined
> Source File: /cforms/js/cforms.js  Line: 23
> 
> Error: forms_onload is not defined
> 
> Is this related to the cforms usecase integration.  Seems like a 
> javascript file might be missing?  Bitflux does not open.
> 
> --Doug
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
> 
> 

-- 
Felix Röthenbacher                  felix.roethenbacher@wyona.com
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org