micmic2
07-01-2003, 02:28 PM
****
<script language=javascript>
function ShowContent(MessageID)
{
if (document.all[MessageID].style.display == "none")
document.all[MessageID].style.display = "";
else
document.all[MessageID].style.display = "none"
}
</script>
<a style='cursor:hand' onclick='ShowContent("MessageID5561")'><u>help</u></a>
<br> <span id="MessageID5561" style="display:none;">
message<BR></span>
****
this works
but...
****
<a style='cursor:hand' onclick='ShowContent("<%=rs("id")%>")'> <u>help</ u></a>
<br> <span id="<%=rs("id")%>" style="display:none;">help<BR></span>
****
but this doesn't works
what can i do
I think that when i write
'ShowContent("<%=rs("id")%>")'
the function doesn't recognize ("<%=rs("id")%>") as an object
<script language=javascript>
function ShowContent(MessageID)
{
if (document.all[MessageID].style.display == "none")
document.all[MessageID].style.display = "";
else
document.all[MessageID].style.display = "none"
}
</script>
<a style='cursor:hand' onclick='ShowContent("MessageID5561")'><u>help</u></a>
<br> <span id="MessageID5561" style="display:none;">
message<BR></span>
****
this works
but...
****
<a style='cursor:hand' onclick='ShowContent("<%=rs("id")%>")'> <u>help</ u></a>
<br> <span id="<%=rs("id")%>" style="display:none;">help<BR></span>
****
but this doesn't works
what can i do
I think that when i write
'ShowContent("<%=rs("id")%>")'
the function doesn't recognize ("<%=rs("id")%>") as an object