yaniv hanya
08-24-2004, 08:24 AM
i create a table during run time, using the "table", "row", and "cell" methods...
i want to show the first line of the subject, and when the user click it- to open the text. i know i should use javascript, so i used literal control in the tables cell's to hold the text.
what i tried to do is to add "<div id = 'text' style='displey:none'>" in the literal, and "onclick" method to the link button.
and then i used this function:
<script language="javascript">
function show ()
{
document.getElementById('text').style.display = "";
}
</script>
well, the problem is it is not working (the text is allways hides). what do i done wrong? are there is another (working) way to do it?
i want to show the first line of the subject, and when the user click it- to open the text. i know i should use javascript, so i used literal control in the tables cell's to hold the text.
what i tried to do is to add "<div id = 'text' style='displey:none'>" in the literal, and "onclick" method to the link button.
and then i used this function:
<script language="javascript">
function show ()
{
document.getElementById('text').style.display = "";
}
</script>
well, the problem is it is not working (the text is allways hides). what do i done wrong? are there is another (working) way to do it?