help to understand parent node childnode properties

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: Oct 2009
Posts: 11
Reputation: zorro-az is an unknown quantity at this point 
Solved Threads: 0
zorro-az zorro-az is offline Offline
Newbie Poster

help to understand parent node childnode properties

 
0
  #1
Oct 5th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 1,426
Reputation: ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light 
Solved Threads: 230
Sponsor
ShawnCplus's Avatar
ShawnCplus ShawnCplus is offline Offline
Code Monkey

Re: help to understand parent node childnode properties

 
0
  #2
Oct 5th, 2009
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
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 11
Reputation: zorro-az is an unknown quantity at this point 
Solved Threads: 0
zorro-az zorro-az is offline Offline
Newbie Poster
 
0
  #3
Oct 6th, 2009
thank you very much
i understood
but i would like to see it a live example
if possible
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 885
Reputation: Airshow will become famous soon enough Airshow will become famous soon enough 
Solved Threads: 127
Airshow's Avatar
Airshow Airshow is offline Offline
Practically a Posting Shark
 
1
  #4
Oct 6th, 2009
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
50% of the solution lies in accurately describing the problem!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC