• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

DOM

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Can anybody explain me what is DOM? and how I can use the API of DOM to update any cell of table of HTML?(by example)
Thanks in advance!
Angela
 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Learn DOM from here: http://www.w3schools.com/dom/
An example link for your questions in your other post.
Roseanne
 
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In very simple terms the DOM standing for Document Object Model is the model for all of the objects in your page. So every tag is its own object with properties and characteristics like the body tage has marginheight and bgcolor and the a tag has href and alt text. This is one area where IE excels over Netscape (however I believe Netscape 6.0 is better than older versions of Netscape). In IE, every tag is part of the DOM, body tags, form tags, form element tags, etc... but with Netscape they didn't make every element part of the DOM so you can't access certain elements with javascript like the b tag.
To access an item, you just give it a name, like <td name=r1c1> then you can use javascript to say chang the text of r1c1. I can't remember what tags are supported by netscape, so I tend to use div tags for most things since that is supported by both.
Do a search for the DOM on most search engines and see what you find.
Bill
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Roseanne and Bill,
Thanks a bunch!
Angela
reply
    Bookmark Topic Watch Topic
  • New Topic