Hi, The HTML and javascript below fails to grab the nested LIs. It works right up to the LI containing a nested UL. Can someone point me to understanding?
HTML:
JS:
[ July 02, 2007: Message edited by: Howard Watson ]
I thought there used to be a way to preview before posting, but I couldn't find it. And I forgot that all the leading white space would be stripped. Thanks for the reminder, Bear.
The markup and code I posted are snippets. The sitemap works. The id of sitemap is a div container. What I've been trying to do is populate the LIs using JavaScript with window.onload. The links populate an iFrame named 'docs'.
I faced this problem recently , getElementByTagname wasnt working, after debugging i found that one of the tags had no ending tag (Ul tag) and it did not recognize the tags below, try to check the struture visually in a editor if all the tags are closed properly . all the best
altering the innerHTML destroys and replaces the content of each li element. When it does this for the third li element, the unordered list and li elements nested within it no longer exist because they�ve been replaced with the new content {the new innerHTML)
codingforums
I guess innerHTML ain't broke after all. I am.
I am displeased. You are no longer allowed to read this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth