Advertisement

08.27.2008 at 12:09PM PDT, ID: 23683168 | Points: 500
[x]
Attachment Details

YUI uploader on OSX

Asked by wevouch in Asynchronous Javascript and XML (AJAX), Scripting Languages, Mac OS 10.4 (Tiger)

Tags: , , , , ,

Using the YUI uploader module (http://developer.yahoo.com/yui/uploader/), with OSX, irrespective of the browser, the upload does not progress to the next file. The onUploadComplete function in the attached code snippet  is the callback for the upload complete event (for a file). upload is the function called when the user clicks the upload button. dataArr contains the list of files to upload.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
var uploadCounter = 0;
var dataArr;
 
function upload() {
	uploader.upload(idToUpload, '/authorized/image-upload?sid=' + session_id, 'POST', img_params);
}
 
function onUploadComplete(event) {
	if (uploadCounter < dataArr.length - 1) {
	    uploadCounter++;
	    upload();
	}
}
[+][-]08.28.2008 at 01:10AM PDT, ID: 22332433

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.10.2008 at 06:26PM PDT, ID: 22444904

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628