Forum Moderators: open

Message Too Old, No Replies

how to make sure file download completely

         

MaxWang

7:06 pm on Dec 21, 2004 (gmt 0)

10+ Year Member



dear all,

function GetData(url){
try
{
DataLoad.src = url;
/*how to modify this sentence to make sure just after file downloaded completely, then execute ......*/
......
}
catch(e)
{
return false;
}
}

orion_rus

8:55 pm on Dec 25, 2004 (gmt 0)

10+ Year Member



it's a php,perl, aspx question, try to ask it in a such forum)
Good luck to you

MaxWang

12:10 am on Dec 30, 2004 (gmt 0)

10+ Year Member



no,this is a javascript function

Rambo Tribble

2:07 pm on Dec 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The only real way to know when a page is finished loading is to use the onload event handler. The event can be accessed either through the window or the body, though basically it is the same event, either way.

jbot

10:58 am on Jan 4, 2005 (gmt 0)

10+ Year Member



wot kind of file are we talking about?