Hi There,
im having problems getting the height of a div that is created in a XSL page.
I have an xml document that creates a list of things.
[code=html]
<TODO>
<TASK>
<STIME>12:00 -</STIME>
<ETIME>13:00</ETIME>
<TITLE>Task 1</TITLE>
<DESCRIPTION>do whatever task 1 is</DESCRIPTION>
</TASK>
<TODO>
this using an xsl file with a css link file – i display the data how i wont.
Then using a little javascript – i can place the data(that i can change the size of in the xml file) in my html. It will show me my whole todo list. I can change the presentation etc not a prob with the css file.
in the html file
Now I thought I’d like to have a link that expands and hides the div (incrementing and decrementing the height in intervals). Now that works… as long as I give the the javascript handling the expanding etc a height number. it cant do the following
var height = document.getElementById(“todolist”).style.height;
height = height.replace(“px”, “”);
height is nothing or undefined.
this doesnt work.. coz if i add more tasks to my xml than my html expanding div doesnt auto size.
hope this makes sense.
Thanks to everyone
Stevanicus