Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Preloading Content
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Preloading Content

 Post Reply Post Reply Page  12>
Author
Bliss View Drop Down
Groupie
Groupie
Avatar

Joined: 25 April 2003
Location: United States
Status: Offline
Points: 181
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bliss Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
3BEPb View Drop Down
Groupie
Groupie


Joined: 07 August 2003
Location: United States
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote 3BEPb Quote  Post ReplyReply Direct Link To This Post Posted: 26 August 2003 at 3:46pm
Which content are you talking about? Pictures?
Back to Top
Bliss View Drop Down
Groupie
Groupie
Avatar

Joined: 25 April 2003
Location: United States
Status: Offline
Points: 181
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bliss Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
3BEPb View Drop Down
Groupie
Groupie


Joined: 07 August 2003
Location: United States
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote 3BEPb Quote  Post ReplyReply Direct Link To This Post 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

%>

Back to Top
Bliss View Drop Down
Groupie
Groupie
Avatar

Joined: 25 April 2003
Location: United States
Status: Offline
Points: 181
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bliss Quote  Post ReplyReply Direct Link To This Post Posted: 30 August 2003 at 4:46pm
Yeah, I know that, I'm just trying to learn how to do it without refreshing.
Hehehe...
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
nikhilmng View Drop Down
Newbie
Newbie


Joined: 14 August 2003
Location: India
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote nikhilmng Quote  Post ReplyReply Direct Link To This Post Posted: 01 September 2003 at 1:28pm
i know there are preloaders in flash !!
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.