durangod
11-06-2012, 04:45 PM
Hi i have a file upload for videos that works fine normally, i decided to add some text on button click to let them know that the process is running.
Without the javascript hidden div, the video uploads and when its done the page refreshes and the vid is there.
However with the hidden div the video uploads but the page never refreshes, it just sits there as if it is still uploading. My text video takes 5:30 to upload and with the hidden div i can wait 11 min and still processing, i hit the browser x and the vid is there.
My question is, is there any reason add this javascript would cause this, because without it, it runs fine.
Here is what i added:
i put this inside the form element just before the close form tag
<!-- this is the div to display the status of the upload process -->
<div align="center" id="vidstatus" style="display:none;font-size:9px;font-weight:bold;color:#FF3300;width:550px;">
Video Upload In Progress ... Please wait!... The screen will refresh when upload complete...
<br /> <br />
</div>
here is the input
<input type="file" id="fileupload" name="fuploadvid[]" size="20" class="inputf"></
my javascript looks like this
var fval = document.FrmPicture.fileupload.value;
if (!fval)
{
alert("You must select an upload file!");
document.FrmPicture.fileupload.focus();
return (false);
}else{
document.getElementById("vidstatus").style.display = "block";
return (true);
}
so if i remove the div and the javascript the upload process works fine. What in those two items would cause it to hang?
Without the javascript hidden div, the video uploads and when its done the page refreshes and the vid is there.
However with the hidden div the video uploads but the page never refreshes, it just sits there as if it is still uploading. My text video takes 5:30 to upload and with the hidden div i can wait 11 min and still processing, i hit the browser x and the vid is there.
My question is, is there any reason add this javascript would cause this, because without it, it runs fine.
Here is what i added:
i put this inside the form element just before the close form tag
<!-- this is the div to display the status of the upload process -->
<div align="center" id="vidstatus" style="display:none;font-size:9px;font-weight:bold;color:#FF3300;width:550px;">
Video Upload In Progress ... Please wait!... The screen will refresh when upload complete...
<br /> <br />
</div>
here is the input
<input type="file" id="fileupload" name="fuploadvid[]" size="20" class="inputf"></
my javascript looks like this
var fval = document.FrmPicture.fileupload.value;
if (!fval)
{
alert("You must select an upload file!");
document.FrmPicture.fileupload.focus();
return (false);
}else{
document.getElementById("vidstatus").style.display = "block";
return (true);
}
so if i remove the div and the javascript the upload process works fine. What in those two items would cause it to hang?