[thelist] DOM - .childNode and How to Target?[Resolved]
jono at charlestonwebsolutions.com
jono at charlestonwebsolutions.com
Mon Apr 2 11:44:37 CDT 2007
In the end, I had to use the following approach with the help of a friend:
<script>/*<![CDATA[*/
if (document.getElementById("target-a")) {
document.getElementById("target-a").childNodes[1].childNodes[1].childNodes[1].childNodes[2].childNodes[1].innerHTML='Email
Address';
}
if (document.getElementById("target-x")) {
document.getElementById("target-x").childNodes[1].childNodes[1].childNodes[0].nodeValue='Email
Address';
}
if (document.getElementById("target-y")) {
document.getElementById("target-y").childNodes[1].childNodes[1].childNodes[1].childNodes[2].childNodes[1].childNodes[0].nodeValue='Email
Address';
}
/*]]>*/</script>
I am working in a CMS environment that is rapidly progressing, for now
this is all that we could manage to get working. I am certain there are
many better ways (with proper syntax) to do this; it's now on my list of
To-Dos.
Thank you to everyone!
More information about the thelist
mailing list