346 users online (1 members and 345 guests)  


  Results 1 to 6 of 6

Related

  1. #1
    ramis55's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2005
    Posts
    8

    Question How detect are page is transferred 100% or not?

    Hello,
    I want make the seconds actions with JavaScript:
    1. On opening the web page showing the text: “downloading page…”
    2. When page 100 % is transferred remove text: “downloading page…” and open the web page.

    In this case my question is. How I can detect are web page in progress transferring or is completed transferring?
    Or maybe impossible detect the web page transferring?

  2. #2
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: How detect are page is transferred 100% or not?

    try somthing like this:
    HTML Code:
    <html>
    <head>
    <script language="javascript">
    function Loaded(){
    document.getElementById('progress').innerHTML='';
    document.getElementById('progress').style.visibility='hidden';
    }
    </script>
    </head>
    <body onload="Loaded();">
    <div id="progress">Loading...</div>
    <img border="0" src="http://mapmaker.rutgers.edu/HISTORICALMAPS/province_of_NJ_1777%20copy.jpg">
    </body>
    </html>
    PS: i chose that image, because it is pretty big, and if you have a slow connection takes a little while

  3. #3
    ramis55's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2005
    Posts
    8

    Re: How detect are page is transferred 100% or not?

    The first thanks for answer.
    So, your suggestion works only on Opera browser, but not works on Netscape, IE and FireFox.
    On Opera text in the input box changes only, when downloading all video_2_raw.3gp. In the seconds browsers (Netscape, IE and FireFox) the text changes immediately before downloading all 3gp file.

    Maybe is another suggestion for my problem?

    I am use the following coed:
    HTML Code:
    function changeTxt(){ 
    document.getElementById('txt').value = 'File Downloaded'; 
    } 
    <body onLoad="changeTxt()"> 
    
    <object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"> 
    <param name="SRC" VALUE="video_2_raw.3gp"> 
    <param name="AUTOPLAY" VALUE="true"> 
    <param NAME="type" VALUE="video/quicktime"> 
    <param name="CONTROLLER" VALUE="true"> 
    <embed SRC="video_2_raw.3gp" AUTOPLAY="true" CONTROLLER="true" type="video/quicktime"PLUGINSPAGE="http://www.apple.com/quicktime/download/"> 
    </embed> 
    </object> 
    <input type="text" id="txt" value="Downloading...">
    PS: your suggestion with images works but not with 3gp files

  4. #4
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: How detect are page is transferred 100% or not?

    well... after a while of trying to find a way to do it... i failed!

    this link is the closest that i came to doing it, but it is DHTML

    http://msdn.microsoft.com/library/de...iacomplete.asp

    and i dont know if it is cross-browser compatable... or if it works with quick time!

  5. #5
    ramis55's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2005
    Posts
    8

    Re: How detect are page is transferred 100% or not?

    t:VIDEO donnot works with quick time. but I am find other suggestion for my problem.
    QuickTime have owner JavaScript function GetMaxBytesLoaded() and GetMovieSize().
    http://developer.apple.com/documenta...ipt/index.html

  6. #6
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: How detect are page is transferred 100% or not?

    i tried to find somthing like that and i had absolutley NO luck!



Tags for this Thread