Jump to content

ajax upload - please help!


dezkit

Recommended Posts

i have this code

 

<script>
function submitonce(theform){
if (document.all||document.getElementById){
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=true
document.getElementById("submit").value="Uploading file... Please wait.";
}
}
}
</script>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form action="upload_ac.php" method="post" enctype="multipart/form-data" name="form1" id="form1" onSubmit="submitonce(this)">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td><strong>Single File Upload </strong></td>
</tr>
<tr>
<td>Select file
<input name="ufile" type="file" id="ufile" size="50" /></td>
</tr>
<tr>
<td align="center"><input type="submit" name="Submit" id="submit" value="Upload" /></td>
</tr>
</table>
</td>
</form>
</tr>
</table>

 

but how do i do so that it just says how much percent is covered under "Uploading file..." and it has the kb/s, no progress meters or anything like that.

 

Please guys, i have been searching for this code for nearly 365 days (1 year) in order to find this script, none of them work, im asking you, phpfreaks, please. thank you so very much!!!!

Link to comment
https://forums.phpfreaks.com/topic/126114-ajax-upload-please-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.