View Single Post
  #23 (permalink)  
Old 12-05-2008, 11:51 PM
Scriptage Scriptage is offline
Member
 
Join Date: May 2008
Location: Yorkshire, England
Gender: Male
Posts: 85
Default

Hi Joe,

Quirks mode has a good introduction to the Document Object Model: JavaScript - W3C DOM - Introduction. You can also just google the term and get countless references that will show you different ways to do what you need to: document object model - Google Search

The trick is knowing what to search for :)

If you need any more help the guys over at webdeveloper will be more than willing to explain things, although sometimes they tend to tell you what you should be doing instead of what you want to do; so it would be imperative that you told them it was for an assignment.

As a general rule you should never use Javascript to display data, the content needs to be accessible to everybody that accesses your website, not a lot of courses show you how to achieve that so it can be a bit of a learning curve in the real world.

If you haven't looked into it then this is a good starting place: All You Need For Accessibility - Tutorials, Tools, Books, Validators, etc (Part II) - WebDeveloper.com

Kind Regards

Carl

P.S (zumojuice)

Quote:
it degrades into a accessible document? do you not want it to be accessible?
The whole idea of "degrading" a document means stripping away a layer of functionality but maintaining content semantics, i.e., in the previous example:

An XSL stylesheet transforms an XML document into an XHTML document.

The document is styled so that the name of the country is displayed above the text describing the country's oil production using divs.

The Javascript then iterates through all of the divs changing the colour of the country names, hides the descriptions and sets a function to toggle the visibility of the descriptions.

The document will now be accessible to those without Javascript as the extra functionality was added on a seperate layer above the document format i.e., the only time content is changed (hidden in this case) is when the browser can handle Javascript.

To make this even more accessible the XSL transformation should be done server side.

Reply With Quote