Samuel Richardson wrote:

If you want to load entire web pages embedded into the current page you will have to use the iframe, if just want to change simple text/html within a div then you will have to use the innerhtml property (or use this method that came up on delicious this morning: http://slayeroffice.com/articles/innerHTML_alternatives/)

I agree that this would be better done using DOM scripting as a more standards-based approach, like it says in that article. I'm new to DOM scripting myself, but found this book by Jeremy Keith to be excellent;

DOM Scripting
http://www.domscripting.com/book/

It's suitable for those with very little scripting experience as well as those with intermediate or better JavaScript skills - I skipped the first 60 pages and then found the content and pacing to be exactly what I needed to understand DOM-based alternatives to things like innerHTML and old-fashioned image swapping techniques.

I think it would be a great addition to the shelf for those that want a good introduction to the area, considering degradable code and accessibility at every stage; the book is well written and very easy to follow. What it's not is a recipe book of flashy effects.

Going back to the original request, my concern would be about how accessible the solution would be without JavaScript; you'd need to ensure that the content was either supplemental to the main purpose of the page, or that the page degraded well so that the content was still available without JavaScript.

Hope this helps

Cheers

Ian

--
_________________________________________________
zStudio - Web development and accessibility
http://zStudio.co.uk

Snippetz.net - Online code library
File, manage and re-use your code snippets & links
http://snippetz.net

******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to