Embedding images in the LI tag
Posted: Thu Dec 14, 2006 8:57 am
I've tried simply putting an <img> tag directly after the <li> tag but the tree doesn't like this and fails to expand, giving the error: "parentNode.getElementsByTagName("UL")[0] has no properties".
I've also tried adding an image by doing a document.createElement and inserting the created element before the aTag element in the initTree method, but the browser doesn't like that either.
Is there a simple to do this that I am overlooking?
Any help would be appreciated. Thanks.