Print Page | Close Window

Preloading Content

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=5277
Printed Date: 30 March 2026 at 9:50pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Preloading Content
Posted By: Bliss
Subject: Preloading Content
Date Posted: 25 August 2003 at 2:22pm

How do you preload content and then display it when a user clicks on a link without refreshing? I suppose this might be a combination of javascript and ASP, but I have no idea how to do this. I did searches like crazy but I don't think I'm search the right words.



-------------
Hehehe...



Replies:
Posted By: 3BEPb
Date Posted: 26 August 2003 at 3:46pm
Which content are you talking about? Pictures?


Posted By: Bliss
Date Posted: 30 August 2003 at 1:29pm
HTML content. IE: I'd have a link that says show joke number 1, and then when the user clicks that link joke number 1 shows without having the page refreshed.

-------------
Hehehe...


Posted By: 3BEPb
Date Posted: 30 August 2003 at 3:39pm

I never did it before, but I think there must be javascript array and content of each element of array will be generated by vbscript loop, so you will have something like that inside <javascript>:

<%

RS.Open "select table_jokes.joke from table_jokes"

i=0

While NOT RS.EOF

response.write "MyArray[" & i & "]=""" & RS("Joke") & """" & vbcrlf

i=i+1

RS.MoveNext

Wend

%>



Posted By: Bliss
Date Posted: 30 August 2003 at 4:46pm
Yeah, I know that, I'm just trying to learn how to do it without refreshing.

-------------
Hehehe...


Posted By: dpyers
Date Posted: 31 August 2003 at 1:05am
Wrap each joke in a named DIV tag and use java script to togglle the visibility. Visibility is an attribute of the DIV tag. Check the WC3 site for examples.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: nikhilmng
Date Posted: 01 September 2003 at 1:28pm
i know there are preloaders in flash !!

-------------
http://www.thewebbrains.com/ - Web Designing Web Hosting Ecommerce
http://web-designing.thewebbrains.com/ - Website Designing jokes india


Posted By: Scotty32
Date Posted: 01 September 2003 at 2:44pm

i wouldnt of thought this had anyfin to do with ASP?

as it would need to be client side, so id do the "div" idea above

i edited a script on javascriptkit.com to do this, but i guess i just needed the standard code



Posted By: 3BEPb
Date Posted: 02 September 2003 at 2:11am

Bliss, dpyers is right. I just thought you know that thing with DIV.

Another wisdom for me to learn - not everything, obvious for you is obvious for anyone else... :)




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net