[Seaside] #updateRoot: for children of #WABrush?

Lukas Renggli renggli at gmail.com
Fri May 11 07:34:14 UTC 2007


> Just curious if I've got a class derived from WABrush, is there a way to
> force some javascript to be spit out similar to what you get with the
> #updateRoot: method available in WAComponent object tree?  I looked at
> the listed of implementors for #updateRoot: but didn't see anything
> horribly interesting..  Anyway, just thought I'd ask.. time for bed.. my
> brain is getting too sleepy.. (8->

If you have loaded Scriptaculous:

    self script: 'alert("from the brush")'

If you don't:

   WACurrentSession value addLoadScript: 'alert("from the brush")'

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside mailing list