[Javascript] Walking the DOM

Troy III Ajnej trojani2000 at hotmail.com
Sun Sep 10 03:41:15 CDT 2006


I think you are in need for 
     o=document.getElementById('album01');     o.innerText=...
 
(an IE extension introduced ten years ago
having in mind exactly the type of applications
you are building right now),
 
but since other browsers don't support ityou are left with W3C conditionals and a long
walk...
(meaning count children check for node type identify the correct textnode)
Regards~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                         Troy III                           progressive art enterprise~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


From: riegel at clearimageonline.comSubject: Re: [Javascript] Walking the DOMDate: Sat, 9 Sep 2006 00:33:38 -0400To: javascript at LaTech.eduCorrect 





On Sep 8, 2006, at 8:17 PM, Troy III Ajnej wrote:
But you don't need to change the href="album01.html". Is that correct?~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                         Troy III                           progressive art enterprise~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> From: riegel at clearimageonline.com> Subject: [Javascript] Walking the DOM> Date: Fri, 8 Sep 2006 15:17:58 -0400> To: javascript at LaTech.edu> > If I have the following markup...> >     <li class="anor" id="album01"><a href="album1.html">My Favorite  > Photos (58)</a></li>> > > > and... in my javascript I have...> >     o=document.getElementById('album01');> > > > How do I reference (with the intent of changing) the content of the  > anchor? My goal is to replace the text with an updated number from  > the server, but I need a method to replace the text. As a side  > question should I be using innerHTML, or is there a better method. If  > anyone is using prototype and knows of a method through that library  > that would be helpful.> > > > Thanks,> > Terry> _______________________________________________> Javascript mailing list> Javascript at LaTech.edu> https://lists.LaTech.edu/mailman/listinfo/javascript

Use Messenger to talk to your IM friends, even those on Yahoo! Talk now! 
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________
Use Messenger to talk to your IM friends, even those on Yahoo!
http://ideas.live.com/programpage.aspx?versionId=7adb59de-a857-45ba-81cc-685ee3e858fe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060910/fd33cb80/attachment.htm>


More information about the Javascript mailing list