[Seaside] [Scriptacolous] hiding onLoad

Lukas Renggli renggli at gmail.com
Wed Sep 12 05:44:50 UTC 2007


> i tried to make a form which is hidden by default (when the website is
> loaded), so it can be toggled  on demand by the user (of course
> without reloading the whole website).

You should then use a style attribute, else the form will flash up
while the page is loading:

   html form
      style: 'display: none';
      with: [ ... ]

> (html form)
>                 onLoad: (html element id: 'idOfForm'; hide);

onLoad only works on the body attribute. To execute code after the
page has loaded use:

   self session addLoadScript: ...

Lukas

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


More information about the seaside mailing list