944,052 Members | Top Members by Rank

Ad:
Oct 5th, 2009
0

help to understand parent node childnode properties

Expand Post »
hi, everyone
i would like to learn more about parentnode and childnode (with exaplanation) with the tutorials
The reason i am beginner i dont understand this properties
does anyone help
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
zorro-az is offline Offline
11 posts
since Oct 2009
Oct 5th, 2009
0

Re: help to understand parent node childnode properties

Well an HTML page is laid out like a tree.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. /*
  2.   HEAD
  3.   |
  4.   BODY
  5.   \
  6.   DIV <-- SPAN's parent node
  7.   \
  8.   SPAN
  9.   / \
  10.   A IMG <-- SPAN's child nodes
  11.  

Each point in the tree is called a Node. The Node directly above another in the tree is its parent (just like a family tree). Any node directly below another is a child
Sponsor
Reputation Points: 520
Solved Threads: 268
Code Monkey
ShawnCplus is offline Offline
1,564 posts
since Apr 2005
Oct 6th, 2009
0
Re: help to understand parent node childnode properties
thank you very much
i understood
but i would like to see it a live example
if possible
Reputation Points: 10
Solved Threads: 0
Newbie Poster
zorro-az is offline Offline
11 posts
since Oct 2009
Oct 6th, 2009
1
Re: help to understand parent node childnode properties
First, you must understand HTML/XHTML and Javascript. Otherwise you will be trying to run before you can walk.

Then, get your mind round the fact the the Document Object Model (DOM) is a tree structure and learn a few special Javascript commands to address and manipulate the DOM.

There's little point posting examples here as there are several online tutorials which do a much better job. This is one from W3Schools, or stick "DOM Tutorial" or similar into Google.

Airshow
Sponsor
Reputation Points: 318
Solved Threads: 358
WiFi Lounge Lizard
Airshow is offline Offline
2,527 posts
since Apr 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Loop to play video one after the other
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: setInterval() help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC