[jQuery] Plugins - Javascript disabled VS CSS disabled!

[jQuery] Plugins - Javascript disabled VS CSS disabled!


> - Disabling Javascript (not CSS) should not enhance behaviour
> but functionality AND LAYOUT (CSS) should remain at least.
> Any suggestions on defining 'good practises' for css in plugins?
A plugin should fail in a way that causes the least disruption to the page.
The basic jCarousel example seems to do this. If script is off, you see all
the thumbnails in the li tags, which you could style any way you like--for
example by adding a nocarousel class to the ul tag. As part of the .ready
code for the page you could remove the nocarousel class so that it would not
affect the result when scripting was enabled. I suppose jCarousel could do
that automatically as part of its initialization.
The only other enhancement I can see for jCarousel itself is to
automatically insert the next/back buttons rather than having them in the
markup; those tradeoffs have already been discussed.
But jCarousel (at least in the sample pages) is a case where the content
comes through unscathed when Javascript is off. If I have a page with a
Thickbox that is fed by an AJAX callback, that page will not display the
same content when Javascript is disabled. I do not think the plugins can
make decisions about what to do in those cases, it is the responsibility of
the page author to decide what to do.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/