You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Rice Yeh <ri...@gmail.com> on 2007/07/17 06:15:44 UTC

[flowscript] cocoon.load() to load non-javascript file?

Hi,
  In flowscript, cocoon.load() is used for loading a javascript. Is there
other way to load a source other than javascript? By studying the source
code, the source reslover is stored in javascript intrepreter but not
accessible to user's flow script. Given no modification to the flowscript
source code, is there a way to access the source resolver?

Rice

Re: [flowscript] cocoon.load() to load non-javascript file?

Posted by Vadim Gritsenko <va...@reverycodes.com>.
Rice Yeh wrote:
> Hi,
>   In flowscript, cocoon.load() is used for loading a javascript. Is 
> there other way to load a source other than javascript? By studying the 
> source code, the source reslover is stored in javascript intrepreter but 
> not accessible to user's flow script. Given no modification to the 
> flowscript source code, is there a way to access the source resolver?

Usually you'd just look it up:

   var resolver = cocoon.getComponent(Packages.org.apache....SourceResolver.ROLE);


Vadim