[Seaside] How can I add my own #replacingAnchor brush with customized "window.open(...)" code?

Lukas Renggli renggli at gmail.com
Fri Jan 4 08:46:22 UTC 2008

> How do I do this? Can I get this effect using some options to the existing
> #anchor, or do I need a new brush?

As usual there are many way.

I suggest that you add a class extension to WAAnchorBrush:

        self onClick: 'window.open(this.href,'_self','',true);return false'

And then whenever you want to use it you just write:

    html anchor
        callback: [ self foo ];
        with: 'replace me'

Lukas Renggli

More information about the seaside mailing list