Any way to disable an anchor or a button?

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

Any way to disable an anchor or a button?

Sophie424
I prefer to keep them visible but disabled even when some model state
prohibits their execution. How might I do this for both anchors and buttons?

Thanks - Sophie



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

Re: Any way to disable an anchor or a button?

Lukas Renggli
> I prefer to keep them visible but disabled even when some model state
> prohibits their execution. How might I do this for both anchors and buttons?

html anchor url: '#'; class: 'disabled'; with: 'Disabled Anchor'.

html submitButton disabled: true; text: 'Disabled Button'.

Cheers,
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: Any way to disable an anchor or a button?

Sophie424
"Lukas Renggli" <[hidden email]> wrote in message
>> I prefer to keep them visible but disabled even when some model state
>> prohibits their execution. How might I do this for both anchors and
>> buttons?
>
> html anchor url: '#'; class: 'disabled'; with: 'Disabled Anchor'.

Do you mean to use a CSS style on the 'disabled' class to change its visual
appearance, or also to disable click behavior? I don't know how to do the
latter.

Thanks,
Sophie



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

Re: Any way to disable an anchor or a button?

Sophie424
Sorry I missed the 'url: '#' ... will try that.

"itsme213" <[hidden email]> wrote in message
news:fjo1oa$fq8$[hidden email]...

> "Lukas Renggli" <[hidden email]> wrote in message
>>> I prefer to keep them visible but disabled even when some model state
>>> prohibits their execution. How might I do this for both anchors and
>>> buttons?
>>
>> html anchor url: '#'; class: 'disabled'; with: 'Disabled Anchor'.
>
> Do you mean to use a CSS style on the 'disabled' class to change its
> visual appearance, or also to disable click behavior? I don't know how to
> do the latter.
>
> Thanks,
> Sophie



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

Re: Re: Any way to disable an anchor or a button?

Lukas Renggli
> > Do you mean to use a CSS style on the 'disabled' class to change its
> > visual appearance, or also to disable click behavior? I don't know how to
> > do the latter.

Just for the visual appearance. Maybe it even make sense not to render
the anchor at all and use a SPAN tag with some visual properties set
instead?

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: Re: Any way to disable an anchor or a button?

Sophie424

"Lukas Renggli" <[hidden email]> wrote in message
>> > Do you mean to use a CSS style on the 'disabled' class to change its
>> > visual appearance, or also to disable click behavior? I don't know how
>> > to
>> > do the latter.
>
> Just for the visual appearance. Maybe it even make sense not to render
> the anchor at all and use a SPAN tag with some visual properties set
> instead?

Possibly, I will try both. Thanks.



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