GetParentNodeWithTagName( objNode, strTagName )


Downloadable Files

dom_get_parent_node_with_tag_name.htm ( 3,620 Bytes )

This method is used to crawl up the document object model (DOM) looking for a parent node with the given tag name. There are some caveats to take into account. If you are searching for a node that doesn't exist, the DOM will crawl up to the Document object. This is a stuctured node (not node type 3) but does NOT have a tag name. So, when crawling, you have keep checking parent nodes even when you don't have a current tag name to check against - otherwise, searching for non-existent parent will return the document object, and not the intended NULL.

Added April 22, 2006 / Updated April 22, 2006


Home   |   Web Log   |   ColdFusion   |   Projects   |   Resume   |   Job Form   |   Search   |   Contact
Epicenter Consulting - Custom Software Solutions for Business Evolution HostMySite.com - The Leader In ColdFusion Hosting