SibSoft Ltd.
Development Services
software products
 RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
EZYWebhost - Cheap XUpload & XFileSharing 100% campatible hosting

AJAX upload progress bar

File sharing script
Intermittent problems with Firefox

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



Joined: 10 Nov 2006
Posts: 36

PostPosted: Nov 13, 2006 3:29 am    Post subject: Intermittent problems with Firefox Reply with quote

Hello

I'm noticing a strange problem where after the upload is done (in firefox) the browser will hang. A browser pop up will display the following message:
Quote:

"A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete."


If I click 'Stop Script' I'll be directed to my POST, but if I click 'Continue' this process will repeat itself.

I've tried this with a 1 byte, 1KB and 3MB files. the 1 byte and 3MB files triggered this error, but the 1KB file was fine.

I'm using XUploadPro-2.2 and my firefox version (just recently upgraded) is:
Code:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8

Any help is greatly appreciated.

Thanks!
hanji
Back to top
View user's profile Send private message Visit poster's website
hanji



Joined: 10 Nov 2006
Posts: 36

PostPosted: Nov 14, 2006 9:43 pm    Post subject: Reply with quote

This problem persists with XUploadPro-2.3. Here is a screen snap

http://www.uno-code.com/images/firefoxError.gif

Thanks!
hanji
Back to top
View user's profile Send private message Visit poster's website
hanji



Joined: 10 Nov 2006
Posts: 36

PostPosted: Nov 14, 2006 10:12 pm    Post subject: Reply with quote

I was also able to reproduce this on the demo site:
http://www.sibsoft.net/upload_form_pro.html

Screen snap is here:
http://www.uno-code.com/images/firefoxError2.gif

Thanks!
hanji
Back to top
View user's profile Send private message Visit poster's website
PilgrimX182



Joined: 22 Mar 2006
Posts: 1107
Location: Undisclosed location

PostPosted: Nov 15, 2006 8:28 am    Post subject: Reply with quote

Interesting...This happens after upload is Complete?
Can you email or PM me the inline window 'View Source' please?
Back to top
View user's profile Send private message Visit poster's website AIM Address
hanji



Joined: 10 Nov 2006
Posts: 36

PostPosted: Nov 15, 2006 2:01 pm    Post subject: Reply with quote

Hello

I'm unable to view the source of the inline progress bar.. just the main upload form:

Code:
<HTML>
<HEAD>
<Title>XUpload form</Title>
<Style>
FIELDSET {width: 400px; xbackground-color: #f9f9f9; border: 1px solid #b3b3b3; font: 13px Arial; text-align: left;}
LEGEND   {background-color: #f0f0f0; border: 1px solid #b3b3b3; font: bold 13px Arial; padding: 2px;}
.div1, .file_list {text-align: left; color: #484B50; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;}
.div1 {width: 100%; padding: 10px;}
.upload_input input {font: 12px Arial; border: 1px solid #636363; margin-top: 1px; width: 100%;}
.file_list {width: 100%; border: 1px solid #434343; background-color: #ffffff;}
.file_list input {font: 12px Arial; border: 1px solid #c3c3c3; margin-top: 1px;}
.myForm {font: 12px Arial; border: 1px solid #636363; margin-top: 1px;}
.fdescr {width: 300px;}
.xfname  {color: #333;}
.xdescr  {color: #aaa;}
</Style>
</HEAD>
<BODY>
<Center>
<br><br>
<form name="F1Upload" enctype="multipart/form-data" action="/cgi-bin/xuploadpro/upload.cgi?upload_id=" method="post" onSubmit="return StartUpload(this);">
<input type="hidden" name="xmode" value="1">
<FIELDSET>
<LEGEND>XUpload PRO Demo</LEGEND>
<table cellpadding=0 cellspacing=0 class="div1" id="div1"><tr><td>

<div class="upload_input"><input id="my_file_element" type="file" name="file_1"></div>

<Table class="file_list"><TR><TD nowrap>
<b><font id='x_max_files'>1</font> files<font id='x_max_size'></font> maximum</b><br>
<div id="files_list" style="font: 12px Arial;"></div>
</TD></TR></Table>

<br>

Password: <input type="password" name="upload_password" size=32 class="myForm"><br><br>

<Input type="checkbox" name="popup" id="popup"><label FOR="popup" ACCESSKEY="Z">Show upload status in pop-up</label><br>
<Input type="checkbox" name="inline" id="inline"><label FOR="inline" ACCESSKEY="X">Show upload status on this page</label><br>
<Input type="checkbox" name="inline2" id="inline2"><label FOR="inline2" ACCESSKEY="C">Show upload status inside this table</label><br>
<br>
<center><input type="submit" value="Upload Files" class="myForm"></center>
<br>
</td></tr></table>
</FIELDSET>

<input type="hidden" name="css_name" value="hitech">
<input type="hidden" name="tmpl_name" value="hitech">
</form>

</Center>


<iframe src="about:blank" name="upload" frameborder=0 style="width: 0px; height: 0px;z-index: 182;"></iframe>
<script>document.write('<script src="' + document.F1Upload.action+'&mode=settings' + '&xmode=' +document.F1Upload.xmode.value+ '" type="text/javascript"><\/script>');</script>
<script src="xupload2.js"></script>

</BODY>
</HTML>


I can get this to happen every time with the following file using your demo and Firefox
Code:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8


File:
http://www.uno-code.com/images/59_LP.jpg

Code:
File info after upload is complete:
file_0 => 59_LP3.jpg
file_0_original => 59_LP.jpg
file_0_status => renamed
file_0_size => 1169891
file_0_description =>
target_dir => /tmp
number_of_files => 1
ip => xxx.xxx.xxx.xxxx
host => somthing.domain.com
duration => 34


Thanks!
hanji
Back to top
View user's profile Send private message Visit poster's website
hanji



Joined: 10 Nov 2006
Posts: 36

PostPosted: Nov 15, 2006 2:08 pm    Post subject: Reply with quote

If I edit the Firefox config (type about:config in the address bar), and change the value for dom.max_script_run_time to 120 (up from 20), I will not get the error message prompt. The behaviour is still odd though. It will hang for a number of seconds after the file has completed the upload, then POST to post.php. I would estimate that the hang was for at least 10 seconds before going to post.php using the same image file I provided earlier.

Thanks!
hanji
Back to top
View user's profile Send private message Visit poster's website
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