[Seaside] Using script tag with updater.

Lukas Renggli renggli at gmail.com
Mon May 21 14:30:07 UTC 2007

> html anchor
>         onClick: (html updater  id: 'myId';
>                 callback: [ :render | render script: [ 'alert("here");' ].
>          ].
> I want to add <script> tag into updateable area, but it silently
> stripped. Any HTML tags are updated ok, but not <script>.

This is a FAQ: The JavaScript code of script.aculo.us strips them by
default. The latest version of Scriptaculous automatically sets the
property #evalScripts: to true, if you are not in the alpha branch of
Seaside you have to do that yourself.

> I also tried to use evalScripts: true, but it fails with javascript errors .

What kinds of errors? FireBug?


Lukas Renggli

More information about the seaside mailing list