RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
Popup not close when uploads finish

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload
View previous topic :: View next topic  
Author Message
natxo



Joined: 13 Sep 2010
Posts: 1

PostPosted: Sep 13, 2010 1:26 pm    Post subject: Popup not close when uploads finish Reply with quote

Hi!

I have pro version and all works good except when i want to get my popup closes automatically when upload finishes. I put a checkbox in my popup html "Close window when finish" and there's a function like this in the xstatus.js file:

function ClosePopUp()
{
if(doc.getElementById('close_finished') && document.getElementById('close_finished').checked==true)self.close();
}

finally i put a function call in upload_status.cgi file to call this function just here:

f(grep{/^uploaded$/i}@$msgs) #finished upload
{
$files++;
print"S('100','$totalKB','$time','$speedKB','$files',0);";
print"if(document.getElementById('stop_btn')){document.getElementById('stop_btn').style.display='none';}";
print qq{ClosePopUp();};
}
else
{
print qq{S('$percent','$currentKB','$time','$speedKB','$files','$estimate');} unless $uploaded;
}

then the popup sometimes closes sometimes not, how can i get to close it always? Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group