Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] javascript DOM doubt
- From: asureshkumar_1983 at yahoo.co.in (suresh kumar)
- Subject: [Javascript] javascript DOM doubt
- Date: Fri Aug 25 04:47:43 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.LaTech.edu/pipermail/javascript/attachments/20060825/4a254bd9/attachment.html
- Follow-Ups:
- [Javascript] javascript DOM doubt
- From: David Dorward
- [Javascript] javascript DOM doubt
- From: Jens Brueckmann
- [Javascript] javascript DOM doubt
- Prev by Date: [Javascript] ad display problem
- Next by Date: [Javascript] javascript DOM doubt
- Previous by thread: [Javascript] ad display problem
- Next by thread: [Javascript] javascript DOM doubt
- Index(es):