Chris,

Hey, cool.  Thanks.  Possibly a more elegant way to do what I want...

Cheers,
--Michael



Christopher Oliver <[EMAIL PROTECTED]>

09/04/03 10:56 AM

Please respond to
[EMAIL PROTECTED]

To
[EMAIL PROTECTED]
cc
Subject
Re: dynamic flowscript






function loadScript(pipelineURI, bizData) {
 var os = new java.io.ByteArrayOutputStream();
 cocoon.processPipelineTo(pipelineURI, bizData, os);
 var bytes = os.toByteArray();
 var str = new java.lang.String(bytes);
 eval(str);
}

[EMAIL PROTECTED] wrote:

>
> Chris,
>
> Could you be more explicit?  AFAIK processPipelineTo invokes a
> pipeline and sends results to an output stream?  Are you saying I can
> write a (js) file to disk and then load (execute) it with eval()?  Are
> you referring to _javascript_ eval(some-string) function?  
>
> Thanks,
> --Michael
>
> Christopher Oliver <[EMAIL PROTECTED]> wrote on 09/03/2003 09:59:49 PM:
>
> >
> > BTW you could use cocoon.processPipelineTo() to create your script and
> > then use eval() to load it.
> >
>



Reply via email to