| Author |
Topic Search Topic Options
|
Bliss
Groupie
Joined: 25 April 2003
Location: United States
Status: Offline
Points: 181
|
Post Options
Thanks(0)
Quote Reply
Topic: Preloading Content 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...
|
 |
3BEPb
Groupie
Joined: 07 August 2003
Location: United States
Status: Offline
Points: 81
|
Post Options
Thanks(0)
Quote Reply
Posted: 26 August 2003 at 3:46pm |
|
Which content are you talking about? Pictures?
|
 |
Bliss
Groupie
Joined: 25 April 2003
Location: United States
Status: Offline
Points: 181
|
Post Options
Thanks(0)
Quote Reply
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...
|
 |
3BEPb
Groupie
Joined: 07 August 2003
Location: United States
Status: Offline
Points: 81
|
Post Options
Thanks(0)
Quote Reply
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
%>
|
 |
Bliss
Groupie
Joined: 25 April 2003
Location: United States
Status: Offline
Points: 181
|
Post Options
Thanks(0)
Quote Reply
Posted: 30 August 2003 at 4:46pm |
|
Yeah, I know that, I'm just trying to learn how to do it without refreshing.
|
|
Hehehe...
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
nikhilmng
Newbie
Joined: 14 August 2003
Location: India
Status: Offline
Points: 4
|
Post Options
Thanks(0)
Quote Reply
Posted: 01 September 2003 at 1:28pm |
i know there are preloaders in flash !!
|
 |
Scotty32
Moderator Group
Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
|
Post Options
Thanks(0)
Quote Reply
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 
|
 |