Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    A web page loading !!!help !!

    Hi all,

    How do you know that a web page is fully/completely loaded in a browser. Is there any content length in a header or what else will let you know.

    Please help me...


    hvg

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,918
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Ther is no reliable way of knowing when a web page has finished loading into a user's browser. The content length is not helpful as the user may be on 56kbits/s dialup or 8mb broadband.



    Quizmaster: The name of a Minister of Transport who gave his name to a type of pedestrian crossing was Leslie Hore- ... who?
    Contestant: Pelican.

  • #3
    Regular Coder
    Join Date
    Dec 2008
    Location
    Tannhäuser Gate
    Posts
    286
    Thanks
    7
    Thanked 58 Times in 57 Posts
    Is ONLOAD unreliable?

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,918
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    http://www.htmlcodetutorial.com/docu...DY_onLoad.html

    Usage recommendation: use it, but don't rely on it.

    I supposed that the OP was looking for some kind of "Loading" or progress bar.

  • #5
    Regular Coder
    Join Date
    Dec 2008
    Location
    Tannhäuser Gate
    Posts
    286
    Thanks
    7
    Thanked 58 Times in 57 Posts
    I think ''don't rely on it'' is more about the use of scripting with the event, and scripts can be just turned off, so you can't rely on them.
    As for indicating when a page has finished loading, I reckon ONLOAD is fairly reliable

  • #6
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,918
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by freedom_razor View Post
    I think ''don't rely on it'' is more about the use of scripting with the event, and scripts can be just turned off, so you can't rely on them.
    As for indicating when a page has finished loading, I reckon ONLOAD is fairly reliable
    With hindsight it would have been possible to give a better answer if the OP had indicated what he wished to achieve. Progress bar, start an animation, identify whether people abandon the page before it has finished loading due to impatience, or what?

    I (perhaps wrongly) supposed that he wanted a progess bar which would turn off as soon as the page had finished loading. Which AFAIK cannot be done.
    Last edited by Philip M; 03-20-2009 at 03:00 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •