<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>If o.innerText is IE only, and still possible with lots of work in other browsers could a general function be created to work in all browsers and then added to a library, such as prototype to make life easier for future use?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Terry</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On Sep 10, 2006, at 4:41 AM, Troy III Ajnej wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">I think you are in need for <BR><BR> o=document.getElementById('album01');<BR> <FONT>o.innerText</FONT>=...<BR> <BR> (an IE extension introduced ten years ago<BR> having in mind exactly the type of applications<BR> you are building right now),<BR> <BR> but since other browsers don't support it<BR>you are left with W3C conditionals and a long<BR> walk...<BR> (meaning count children check for node type identify the correct textnode)<BR> Regards<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR> Troy III<BR> progressive art enterprise<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR><BR><BR> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #008080 2px solid; MARGIN-RIGHT: 0px"> <HR id="EC_stopSpelling"> From: <A href="mailto:riegel@clearimageonline.com">riegel@clearimageonline.com</A><BR>Subject: Re: [Javascript] Walking the DOM<BR>Date: Sat, 9 Sep 2006 00:33:38 -0400<BR>To: <A href="mailto:javascript@LaTech.edu">javascript@LaTech.edu</A><BR><BR>Correct <DIV><BR class="EC_khtml-block-placeholder"></DIV> <DIV><BR class="EC_khtml-block-placeholder"></DIV> <DIV><BR class="EC_khtml-block-placeholder"></DIV> <DIV><BR> <DIV> <DIV>On Sep 8, 2006, at 8:17 PM, Troy III Ajnej wrote:</DIV><BR class="EC_Apple-interchange-newline"> <BLOCKQUOTE>But you don't need to change the href="album01.html". <BR>Is that correct?<BR><BR><BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR> Troy III<BR> progressive art enterprise<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR><BR><BR> <HR id="EC_stopSpelling"> <BR>> From: <A href="mailto:riegel@clearimageonline.com">riegel@clearimageonline.com</A><BR>> Subject: [Javascript] Walking the DOM<BR>> Date: Fri, 8 Sep 2006 15:17:58 -0400<BR>> To: <A href="mailto:javascript@LaTech.edu">javascript@LaTech.edu</A><BR>> <BR>> If I have the following markup...<BR>> <BR>> <li class="anor" id="album01"><a href="album1.html">My Favorite <BR>> Photos (58)</a></li><BR>> <BR>> <BR>> <BR>> and... in my javascript I have...<BR>> <BR>> o=document.getElementById('album01');<BR>> <BR>> <BR>> <BR>> How do I reference (with the intent of changing) the content of the <BR>> anchor? My goal is to replace the text with an updated number from <BR>> the server, but I need a method to replace the text. As a side <BR>> question should I be using innerHTML, or is there a better method. If <BR>> anyone is using prototype and knows of a method through that library <BR>> that would be helpful.<BR>> <BR>> <BR>> <BR>> Thanks,<BR>> <BR>> Terry<BR>> _______________________________________________<BR>> Javascript mailing list<BR>> <A href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A><BR>> <A href="https://lists.latech.edu/mailman/listinfo/javascript" target="_blank">https://lists.LaTech.edu/mailman/listinfo/javascript</A><BR><BR><BR> <HR> Use Messenger to talk to your IM friends, even those on Yahoo! <A href="http://ideas.live.com/programpage.aspx?versionId=7adb59de-a857-45ba-81cc-685ee3e858fe" target="_blank">Talk now!</A> <DIV style="MARGIN-BOTTOM: 0px; MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px">_______________________________________________</DIV> <DIV style="MARGIN-BOTTOM: 0px; MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px">Javascript mailing list</DIV> <DIV style="MARGIN-BOTTOM: 0px; MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px"><A href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A></DIV> <DIV style="MARGIN-BOTTOM: 0px; MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px"><A href="https://lists.latech.edu/mailman/listinfo/javascript" target="_blank">https://lists.LaTech.edu/mailman/listinfo/javascript</A></DIV></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE><BR><HR>Use Messenger to talk to your IM friends, even those on Yahoo! <A href="http://ideas.live.com/programpage.aspx?versionId=7adb59de-a857-45ba-81cc-685ee3e858fe" target="_new">Talk now!</A><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Javascript mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>