C
C White
Hi All
It's been several years since I've done any ASP programming and I've
recently been thrown back into it so I am very rusty, to say the least.
I use a javascript, in regular html, you click on the link and it
displays more information below:
<!--
function openIt(FAQ) {
showIt = document.all(FAQ);
if (showIt.style.display == "none") {
showIt.style.display = ""
} else {
showIt.style.display = "none"
}
}
//-->
<A href="#" onclick="JavascriptpenIt('Answer2'); return false;"><img
src="images/plus.gif" border="0"></A> Another question?
<DIV id="Answer2" style="display:none">
<img src="images/arrow_down.gif"> Another answer!!
</DIV>
rather than store everything in a static page all the information is in
a database and I can use the following ASP code to display it:
'Write the HTML to display the current record in the recordset
Response.Write (rsCallLog("ID"))
Response.Write (" <b>")
Response.Write (rsCallLog("Question"))
Response.Write ("</b> ")
Response.Write (rsCallLog("Date"))
Response.Write (" ")
Response.Write (rsCallLog("Answer"))
Response.Write ("<br>")
'Move to the next record in the recordset
rsCallLog.MoveNext
however this displays both the question and answer, i would like to hide
the answer until a link is clicked
now my porblem is this, whenever I try to integrate the show/hode
javascript I keep getting errors and it displays nothing, I know the
problem is with how I am coding it, there is somehting wrong with my
syntax, I know that when you want a quote mark to be displayed as html
code you have to double the quote mark, but I think I'm missing a lot
more than that
I have been trying, very unsuccessully for the last day to find my
answer on the web and there is nothing about making that javascript work
in asp
If anyone can point me in the right direction here that would be greatly
appreciated
Thanks
It's been several years since I've done any ASP programming and I've
recently been thrown back into it so I am very rusty, to say the least.
I use a javascript, in regular html, you click on the link and it
displays more information below:
<!--
function openIt(FAQ) {
showIt = document.all(FAQ);
if (showIt.style.display == "none") {
showIt.style.display = ""
} else {
showIt.style.display = "none"
}
}
//-->
<A href="#" onclick="JavascriptpenIt('Answer2'); return false;"><img
src="images/plus.gif" border="0"></A> Another question?
<DIV id="Answer2" style="display:none">
<img src="images/arrow_down.gif"> Another answer!!
</DIV>
rather than store everything in a static page all the information is in
a database and I can use the following ASP code to display it:
'Write the HTML to display the current record in the recordset
Response.Write (rsCallLog("ID"))
Response.Write (" <b>")
Response.Write (rsCallLog("Question"))
Response.Write ("</b> ")
Response.Write (rsCallLog("Date"))
Response.Write (" ")
Response.Write (rsCallLog("Answer"))
Response.Write ("<br>")
'Move to the next record in the recordset
rsCallLog.MoveNext
however this displays both the question and answer, i would like to hide
the answer until a link is clicked
now my porblem is this, whenever I try to integrate the show/hode
javascript I keep getting errors and it displays nothing, I know the
problem is with how I am coding it, there is somehting wrong with my
syntax, I know that when you want a quote mark to be displayed as html
code you have to double the quote mark, but I think I'm missing a lot
more than that
I have been trying, very unsuccessully for the last day to find my
answer on the web and there is nothing about making that javascript work
in asp
If anyone can point me in the right direction here that would be greatly
appreciated
Thanks