SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Resource

W3C DOM Table of Contents


Sponsored Links
Developer's Paradise : Inside Technique :
W3C DOM Table of Contents
Submission by SiteExperts Staff

Go to the resource:
W3C DOM Table of Contents

Add to Assistant

Short Description
We show you how to create a W3C DOM compliant Table of Contents that runs in IE5 and Gecko.

Long Description
In this article we explore using the W3C Document Object Model (DOM) recommendation and ECMA-262 (JavaScript) to automatically generate a table of contents for your page. The best part about this article is that the code based completely on approved standards and recommendations runs on both Internet Explorer 5.0 and the latest Gecko Developer preview.

Author
Scott Isaacs
Date/ Version
4/21/1999
Submission URL
http://www.SiteExperts.com/tips/contents/ts16/page1.asp
Submission Date
Apr 21,1999
Last Update
Apr 22,1999
Related To
Inside Techniques
 

Discussion and Rate this Resource
Overall Rating: 4.2

chinaaspboy on Dec 14, 2000 at 8:11:00 AMNo Rating

jhk

John Dimm on Mar 15, 2000 at 3:29:24 PMRating: 5

Scott, you say there's a demo now available as part of the article. Where is it?  I looked in the "Demonstration" section.

I have a similar need, to update this scripting to the DOM (it's a small trivial example):

 http://www.binevolve.com/~jdimm/innerHTML.html

I was hoping your article would solve the problem for me.  In IE, you can get or set the innerHTML of a tag.  Very simple, very easy interface. Apparently not so easy in the W3C DOM.  Your getTextForElement is close, but it only gets the character data, not the subelement tags.  Any ideas? 

Thanks,

  John

VRUppugunduri on Sep 10, 1999 at 9:03:19 AMRating: 5

Overall, this article is a very interesting one. A very good ref. for all levels of users. Good job.

Scott Isaacs on May 3, 1999 at 6:54:33 PMNo Rating
A demo is now available as part of the article. -Scott
RussellDavis on Apr 30, 1999 at 10:52:10 PMRating: 1
Great article, and useful code. I would have given it a 4, but the fact that it doesn't come with a working example brings it all the way down to a 1. Come on, guys, this is truly pathetic. How hard can it be to add a link to a working demo of the technique illustrated? That's the first (and often only) thing I want to see with a technique like this, and you don't even make it available. Give me a break. I hope to see this issue addressed!

More Ratings/ Comments


To rate and comment on a resource, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password

Copyright © 1997-2008 InsideDHTML.com, LLC. All rights reserved.