Hi all,
I am creating a folder tree using xml,xsl,javascript...
In that - I am passing the div tag object to a function as an argument named for intstance as diventity
in javascript what does the following code does...
function expand(diventity) {
var oImage
oImage = entity.childNodes(0).all["image"]--- What does this code does .
oImage.src = entity.imageOpen
}
Loading
Jaish MathewsPosted Jul 21, 2010, 4:10 AM
NP. If it's fine, close the thread by accepting it
jayaprakash RPosted Jul 21, 2010, 1:26 AM
Jaish MathewsPosted Jul 17, 2010, 1:24 PM
1st of all the result will be, oImage will contain all HTML elements with an ID of "image" under 1st child element of the passed DIV. But it won't search for any HTML element with TAG "Image". For that need to use below line
entity.childNodes(0).getElementsByTagName("img");
This will return all image tags under 1st child of the passed DIV