sjivan
4 Dec 2006, 12:58 PM
I've often wondered when the YUI CSS layouts would be preferred over the YUI-ext BorderyLayout. I was going to post this in the other thread regarding tables and layouts but figured that it was not directly related to the thread.
My understanding is that the CSS based layouts are more suitable for pages that need to display correctly even when javascript is disabled. For example many sites have static pages (atleast for their main page) and its desirable that a user views this page even when Javascript is turned off. Its not because users might be on a browser that doesn't support javascript, but they might disable Javascript by default (for example I use a Firefox plugin that turns off Javascript by default so stay away from ad scripts etc). An example of such sites could be a designers portfolio page.
The YUI-ext layout makes layouts a breeze and supports some fancy side nav sliding and it really enhances the feel of an app. However it might be more suitable for web applications (as opposed to web sites) where a prerequisite to running the app is to have Javascript enabled. And if the user doesn't have it enabled, a noscript message message to the user stating that JS needs to be enabled can be displayed.
So if I had to build a site that had quite a bit of intro / marketing static content etc and also had functionality to support a rich shopping cart type application, I would probably have CSS based layouts for the static pages and then a login link that caused the user to enter the shopping web app.
I guess even Yahoo mail follows the same style where there main page uses CSS based layouts and then a richer desktop type layout once you enter the new Yahoo mail web app.
Jack, can you share your thoughts on this?.
Thanks,
Sanjiv
My understanding is that the CSS based layouts are more suitable for pages that need to display correctly even when javascript is disabled. For example many sites have static pages (atleast for their main page) and its desirable that a user views this page even when Javascript is turned off. Its not because users might be on a browser that doesn't support javascript, but they might disable Javascript by default (for example I use a Firefox plugin that turns off Javascript by default so stay away from ad scripts etc). An example of such sites could be a designers portfolio page.
The YUI-ext layout makes layouts a breeze and supports some fancy side nav sliding and it really enhances the feel of an app. However it might be more suitable for web applications (as opposed to web sites) where a prerequisite to running the app is to have Javascript enabled. And if the user doesn't have it enabled, a noscript message message to the user stating that JS needs to be enabled can be displayed.
So if I had to build a site that had quite a bit of intro / marketing static content etc and also had functionality to support a rich shopping cart type application, I would probably have CSS based layouts for the static pages and then a login link that caused the user to enter the shopping web app.
I guess even Yahoo mail follows the same style where there main page uses CSS based layouts and then a richer desktop type layout once you enter the new Yahoo mail web app.
Jack, can you share your thoughts on this?.
Thanks,
Sanjiv