I have a page with two functions. Function A compiles an array and displays a button when done. The user clicks the button and the array is passed into Function B... All I have is Function A:
function createUploader(){
var fileArray = new Array();
var i = 0;
var running = 0;
var jList = $( "#list" );
var uploader = new qq.FileUploader({
element: document.getElementById('uploadDiv'),
listElement: document.getElementById('separate-list'),
action: './includes/ajaxUpload/upload.php',
sizeLimit: 10485760,
onSubmit: function(id, fileName){
running++;
},
onComplete: function(id, fileName, responseJSON){
fileArray[i] = fileName;
i++;
running--;
if(running==0){
$('#combineBtn').css("display","");
$.fancybox.resize();
$('#fancybox-content').width(290);
$('#fancybox-wrap').width(310);
$.fancybox.center
$('.qq-upload-button').width(290);
}
}
});
}
Is this even possible? What would be the best way to accomplish this?