[Javascript] javascript DOM doubt

suresh kumar asureshkumar_1983 at yahoo.co.in
Fri Aug 25 04:47:35 CDT 2006


Hi,
     sorry for repeatively asking my doubt.bcz i am can't able to solve this problem .
  suppose i am already having a parent node and the child node.i want to append a another child node below the already available child node.
   
  this is the already available tree 
   
               <div id='iedisplayarea'>     //parent node  
                       |
                       |
               <img id='ashow'>              //child node of iedisplay area
   
  i want to change the tree as 
   
           <div id='iedisplayarea'>     //parent node  
                       |
                       |
               <img id='ashow'>              //child node of iedisplay area
                       |
                       |
               <img id='ashow1'>            //child node of ashow
   
  i used this are the functions.
              var x=document.getElementById('ashow');
              var y=document.createElement('IMG');
                   y.setAttribute('id','ashow1');
   
              this.y=x.appendChild(y);    //giving an error msg as -"unexpected call to method or property access"
                                                                          A.suresh

 				
---------------------------------
 Here's a new way to find what you're looking for - Yahoo! Answers 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060825/4a254bd9/attachment.htm>


More information about the Javascript mailing list