Thanks Jason. For both commenters, here’s the TOC I’m creating. I’m not an AJAXer because I need to cater to a very large set of browsers, that is why the ids need to be hardcoded when sent to the browser. I solved my problem using a plugin quite some time ago but my ideal setup would be to use a snippet so that it would be easier for the editor to add a quick TOC to their page (much like the way MediaWiki uses the "[tt]__TOC__[/tt]" placeholder).
Let me start by saying the way I use TOC is not relative to the entire MODx site. I’m talking about a single page. Take for instance the following page generated by mediawiki:
http://wiki.modxcms.com/index.php/Snippet_Toolkit.
You’ll notice that TOC is generated automatically. Now, since MW’s content is completely dynamic, adding a TOC is fairly simple. But since I have hardcoded <h*> tags in my MODx document, I need a method to add the required id parameter so that users/browsers can jump to that part of the document, which, of course, is simple using a plugin. The problem with using a plugin is that I need to set a custom placeholder in the document where I want the TOC to be located, this is the part where ideally I would like the snippet call to be. Does that make sense?
I’ll do some more research to see if this is possible and post my results. This really a "back burner" issue though. Thanks!