views:

76

answers:

1

Does anyone use jQueryUI (such as the CSS framework part) without the jQuery component? If you were catering for users who don't have javascript or who have it disabled etc

A particular scenario would be the dialogs which are so brilliant and simple...without javascript its just a div though...would a potential solution be to have the dialog div with a class that positions it absolutely and above other elements and then to remove that class when jQueryUI sets up the dialog...so that if javascript cannot run the dialog still has the class?

or would you use the css framework to create the dialog manually perhaps...

+2  A: 

I use the CSS all the time outside of jQueryUI; I find it provides a much more consistent look-and-feel.

As for the rest of the question...whatt?!

and then to remove that class when jQueryUI sets up the dialog

How do you plan on having jQueryUI run ("set up the dialog") without JavaScript being enabled? If you put the dialog up without JavaScript, it won't be able to move or close; you'll be stuck with a giant div in the middle of the screen.

geowa4
that's my point...would you have a class that sets up a dialog assuming no javascript...and then have the javascript remove that class when setting it up...
davidsleeps
do you use the CSS to manually create the dialogs? what about the manual overlay without js?
davidsleeps
as i stated, if you make an overlay or a dialog or whatever, it will be stuck there and the user can never get rid of it. so do not put one with css. no javascript + css dialog = unusable site.
geowa4
i see your point (sorry it took so long)! although, it would (in this case) be in asp.net and if the manual dialog had a control that closed the dialog (ugly though)...
davidsleeps
make sure that the control asp.net adds is not using javascript; i think it will. you would need a link to another page, or the same page with a different query string--something that lets you identify whether or not to make the dialog.
geowa4
have you used the css ui dialogs manually?
davidsleeps
have i used jQueryUI's css for making dialogs without JavaScript? No; I have never found a need to do so.
geowa4