PHP Classes

Cicle Fail, solutioned!!!!

Recommend this page to a friend!

      AJAX File Uploader  >  All threads  >  Cicle Fail, solutioned!!!!  >  (Un) Subscribe thread alerts  
Subject:Cicle Fail, solutioned!!!!
Summary:uploader.js
Messages:1
Author:hjksadfj
Date:2008-12-23 02:19:51
 

  1. Cicle Fail, solutioned!!!!   Reply   Report abuse  
Picture of hjksadfj hjksadfj - 2008-12-23 02:19:51
Congratulations to the maker of this control, all correct but, only i had a problem, when i upload a file very good but, the second upload didn't, then, i added a line in the uploader.js file in the function uploadFile, for renew the XMLHttpRequest object, like this:

function uploadFile(obj, dname) {
////////////////////
//added line
http=createRequestObject();
////////////////////
uploadDir=obj.value;
idname=obj.name;
dirname=dname;
filename=uploadDir.substr(uploadDir.lastIndexOf('\\')+1);
document.getElementById('loading'+idname).innerHTML="<img src='loading.gif' alt='loading...' />";
uploaderId = 'uploader'+obj.name;
uploader = obj.name;
document.getElementById('formName'+obj.name).submit();

timeInterval=setInterval("traceUpload()", 1500);
}

I hope, use them