How then do I set what I want to happen if javascript is disabled?

I create an MACommandColumn with this as the selector.

removeFooConfirm: aFoo

( self lightbox: (WAYesOrNoDialog new addMessage: 'Are you sure you wish to remove', aFoo name,'?'; yourself ))
        ifTrue: [ self removeFoo: aFoo ]

I disable javascript in my browser. When I click "remove", I see in the html source that it's still trying to apply the light box, but since javascript is disabled, all I see is that the same page without a vertical scrollbar.

How I understand degradation is that you put in an onClick event what you want to happen, and return false. If javascript is disabled, it ignores the onClick and the element does what is in the callback.




On Thu, Oct 1, 2009 at 7:41 AM, Lukas Renggli <renggli@gmail.com> wrote:
> In a Magritte report, I have a "remove" command column. What I want is a
> confirmation lightbox that degrades to a normal seaside confirmation (
> separate page ) if javascript is disabled.

The default lightbox that comes with Scriptaculous does not use AJAX,
so it is degraded by default anyway ;-)

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki