[Scriptacolous] hiding onLoad

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Scriptacolous] hiding onLoad

Matthias Junker
hello,
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). i tried:

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

etc.

but this doesn't seem to work. does anyone know how to do this?

Thanks,
Matt


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: [Scriptacolous] hiding onLoad

Conrad Taylor
Hi Matt, have you tried using a div?  For example,

html div

      onClick: (html effect toggle); with: [ ... ]


Good luck,


-Conrad


On 9/11/07, Matthias Junker <[hidden email]> wrote:
hello,
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). i tried:

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

etc.

but this doesn't seem to work. does anyone know how to do this?

Thanks,
Matt


_______________________________________________
Seaside mailing list
[hidden email].org
<a href="http://lists.squeakfoundation" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: [Scriptacolous] hiding onLoad

Lukas Renggli
In reply to this post by Matthias Junker
> 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
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: [Scriptacolous] hiding onLoad

Sebastian Sastre-2
In reply to this post by Matthias Junker
 

> (html form)
> onLoad: (html element id: 'idOfForm'; hide);
>
> etc.
>
> but this doesn't seem to work. does anyone know how to do this?
>
> Thanks,
> Matt
>

This is a kind of fashion way:

html anchor
        onClick: (html effect id: aFormId; blindDown);
        with: 'Open Form'.

html form
        id: aFormId;
        attributeAt: #style put: 'display: none';
        with:[blah]

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside