Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How can I trace the page download percent?

wwwdragonwwwdragon Member Posts: 1

Comments

  • SouldrinkerSouldrinker Member Posts: 143

    huh? :confused:

    best regards,

    sebastian mohrenstecher
    executive secretary
    net::allies

    www.net-allies.de
    [email protected]

  • bgibbybgibby Member Posts: 251
    :
    :

    Hi there,

    I was considering putting this reply inside the subject but I guess I'll consider everyone else reading it!

    IE has a READYSTATE feature that tells you whether the page has been loaded correctly.

    If it hasn't it says the page is "LOADING".

    This is an IE specific feature (I believe) and can only give you the pages state in a few values not the percentage.

    If you were to have all your pages hardcoded in JavaScript you could work out the total amount of lines you had to render and as you render the lines, keep a count of how many you have rendered.

    Therefore...

    percentage_loaded = amount_of_lines_rendered / total_amount_of_lines;

    There's a percentage for ya!

    HTH
    Bradley q:)
Sign In or Register to comment.