<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>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: riegel@clearimageonline.com<BR>Subject: Re: [Javascript] Walking the DOM<BR>Date: Sat, 9 Sep 2006 00:33:38 -0400<BR>To: javascript@LaTech.edu<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></body>
</html>