Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

Hide/Show

Posted 02 Sep 2004 23:59:20
1
has voted
02 Sep 2004 23:59:20 Greg LeBreck posted:
In asp I have a Div tag with a News Title. What I want to do is click the title and then have the News content displayed.

Not change! But instead look like the tag streached and the content was there all the time.

And then of course click the title to make it go away again

Edited by - Nix Neon on 03 Sep 2004 00:13:04

Replies

Replied 05 Sep 2004 13:11:00
05 Sep 2004 13:11:00 Rene Bandsma replied:
Maybe this will work:

When a user clicks the news link a URL parameter is passed to the same page. With an IF THEN ELSE construction you can build your page against the URL parameter.
Replied 06 Sep 2004 03:23:57
06 Sep 2004 03:23:57 Andrew Watson replied:
how long are the stories you will expose?...If they are not too long i would suggest looking into some very simple DHTML to show/hide without refreshing..

if this isnt possible then bandsmas method is probably the way...

<pre id=code><font face=courier size=2 id=code>
while not rs_news.eof
response.write "&lt;div&gt;&lt;a href=""news.asp?id=" & rs("ID" & "&gt;" & rs("HEADLINE" & "&lt;/a&gt;"
if request.querystring("id" = rs("ID" then
response.write "&lt;p&gt;" & rs("STORY" & "&lt;/p&gt;"
end if
response.write "&lt;/div&gt;"
rs_news.movenext : wend

</font id=code></pre id=code>

:: Son, im Thirty.... ::

Reply to this topic