cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: Linking/including mutiple flowscript files
Date Fri, 14 Oct 2005 10:19:58 GMT
Derek Hohls wrote:
> Is it possible to have one "master" flowscript file
> which links or includes other "child" flowscript files,
> in much the same way as XSL uses the "include" 
> statement?
> 
> If so, how?; if not, what is the best design approach 
> for ensuring a clean design around location of logic
> in appropriate places?
you can use cocoon.load( scriptUri ) in your main script e.g.:
cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js");

I have a feeling there are some caching issues with this approach.

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message