#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    2
    Rep 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!
  2. #2
  3. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,041
    Rep Power
    119
    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]

    [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>[/code]

    Comments on this post

    • Mike SanDiego agrees : Wonderful, thanks!
    Last edited by web_loone08; October 11th, 2012 at 03:16 PM.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    2
    Rep Power
    0
    Great help, thanks so much!!

IMN logo majestic logo threadwatch logo seochat tools logo