| Previous · Next | |
| User | Message |
patspam
|
Date: 9/25/2008 1:55 am · Subject: Graceful degredation · Rating: 0
Hi guys,
Some food for thought.. The current default Navigation menu is rendered dynamically by YUI from WebGUI-generated html markup. This is great because it means we can do graceful degredation for people without Javascript (and also makes the nav links available for SEO). However if you view the default WG site (attachment: nav-js.png) with Javascript turned off, you will see that the navigation links look pretty aweful (attachment: nav-broken.png). It's pretty easy to fix though (attachment: nav-noscript.png), just edit the navigation template as follows:
Patrick Attached Files |
| Back to Top |
Rate [ | ]
|
|
rogier
|
Date: 10/1/2008 4:12 am · Subject: Re: Graceful degredation · Rating: 0
Let's think about javascript in the context of the templates in general. Graceful degradation is ofcourse a requirement as well as unobtrusiveness. There are a couple of places where this might be an issue:
Lets make an inventory: do we know any other places where js can be found? Is it:
I'm no js expert so I'll need some help with this.
Rogier | United Knowledge |
| Back to Top |
Rate [ | ]
|
patspam
|
Date: 1/20/2009 8:35 am · Subject: Re: Graceful degredation · Rating: 0
Hi folks,I've applied this graceful degredation technique to the hierarchical-top-nav template on the template site. Some comments for feedback:
Patrick On Wed, Oct 1, 2008 at 8:12 PM, <rogier@unitedknowledge.nl> wrote:
|
| Back to Top |
Rate [ | ]
|
|
rogier
|
Date: 1/20/2009 9:23 am · Subject: Re: Graceful degredation · Rating: 0
I'm pretty certain assetIDs are alphanumeric plus underscore and hyphen. Underscores are the only problem here, they may cause problems. The assetId is not really necessary for navs, since usually there isn't more than one nav of a certain type on a page. For articles or other common assets though, unique IDs are a great feature. They enable designers to style token assets and are very useful for controling css specificity. A possibility is to add an RFE to remove the underscore from the assetId syntax.
Rogier | United Knowledge |
| Back to Top |
Rate [ | ]
|
patspam
|
Date: 1/20/2009 6:00 pm · Subject: Re: Graceful degredation · Rating: 0
I didn't know underscores were problematic too, thanks for the info! All true for auto-generated assetIds, the only problem being that some wG assets have manually chosen ids. One example being the hierarchical-top-nav template. E.g. If you look at the front page of the template site you'll see that the top nav has an id of "navigation-7.0-style0000000000070" which comes from the template having an id of "7.0-style0000000000070". So we either need to:
Agreed. Initially I didn't like the idea of using assetIds at all, but I think I'm warming to the idea.
I'm pretty sure this would be blocked because it would be pretty much almost impossible to try to change all of the assetIds in the wild to conform to the new standard. I've submitted a bug report with the suggestion that we create a filter to strip dangerous/invalid characters from assetIds. Regards, Patrick |
| Back to Top |
Rate [ | ]
|
|
rogier
|
Date: 1/20/2009 9:30 am · Subject: Re: Graceful degredation · Rating: 0
This all sounds good. I'll take a look at it tomorrow.
I don't think that solves the validation issues with that specific template, but now you've done your .js magic, that's an easy fix for me.
Rogier | United Knowledge |
| Back to Top |
Rate [ | ]
|