JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 4th, 2012, 08:06 PM
Mike SanDiego Mike SanDiego is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 2 Mike SanDiego User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 58 sec
Reputation Power: 0
Help: Frames, External Link, Message: Wait While Loading

I have two frames: content and main, in which links in content are loaded into main. All these links are external, e.g., url.../somepage.aspx and I have no control over them. These pages take time to load, so every time user clicks on the link and it is loading, I need the user to see a message to wait, e.g., waitloading.gif

The way it is set is:
frame name="contents" target="main"
frame name="main" src="(url.../somepage.aspx)"

How can I do that? Please advise in simple terms (hopefully copy/paste) as I am novice. Thanks much!

Reply With Quote
  #2  
Old October 11th, 2012, 02:56 PM
web_loone08's Avatar
web_loone08 web_loone08 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2008
Posts: 605 web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 16 h 17 m 48 sec
Reputation Power: 69
I would use like a buffer / splash page, to display the waiting message / image and then redirect end user to page you want them to view.

Code:
Content Page
<a href="splash_buffer.html?url=http://www.nbcnews.com" target="main">NBC News</a>


Code:
Buffer / Splash Page (splash_buffer.html)
<script>
function getURL()
{
var url = document.location.href.split("url=")[1];
window.location.replace(url);
}
window.onload = function() {
setTimeout("getURL()",3000);
}
</script>

<h1>Loading... Please Wait</h1>
Comments on this post
Mike SanDiego agrees: Wonderful, thanks!

Last edited by web_loone08 : October 11th, 2012 at 03:16 PM.

Reply With Quote
  #3  
Old October 15th, 2012, 03:20 AM
Mike SanDiego Mike SanDiego is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 2 Mike SanDiego User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 58 sec
Reputation Power: 0
Great help, thanks so much!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Help: Frames, External Link, Message: Wait While Loading

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap