[Seaside] Using script tag with updater.
sig
siguctua at gmail.com
Mon May 21 14:56:46 UTC 2007
I tried to use script: 'alert("here");'
and it works.
It seems it don't expect a block there.
On 21/05/07, Lukas Renggli <renggli at gmail.com> wrote:
> > 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?
>
> Cheers,
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
More information about the seaside
mailing list