cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robby Pelssers <robby.pelss...@the-future-group.com>
Subject RE: Using replace in Flowscript
Date Tue, 18 Feb 2014 08:24:33 GMT
Peter,

are you refering to the html document object?  In that case you're barking up the wrong tree...
flowscript is server side javascript.  But if you e.g. want to import java classes you can
use the following syntax:


On 25/01/11 08:17, Robby Pelssers wrote:
> importClass(Packages.java.util.ArrayList);
>
> function search() {
>      var list = new ArrayList();
>      ...
> }
>
> Kind regards,
> Robby Pelssers

________________________________
Van: Peter Sparkes [peter@didm.co.uk]
Verzonden: zondag 16 februari 2014 10:22
Aan: Cocoon users
Onderwerp: Using replace in Flowscript

Hi,

I am having difficulties using:

  *   document=document.replace('hhh','ggg')

in my flowscript

Help please, how do I import the correct package/class

Thanks

Peter

The Future Group, dé maat in ondernemen


[The Future Group]<www.the-future-group.com>    [The Future Group kantoor]         
    Röntgenlaan 27 | 2719 DX Zoetermeer     [Mobiel nummer]                 06 15879926
[Web-site]              http://www.the-future-group.com [E-mail adres]          robby.pelssers@the-future-group.com
[Telefoonnummer]                +31 (0)79 - 363 2905    [LinkedIn account]
[Twitteraccount]                http://twitter.com/futuregroup



Mime
View raw message