It looks like you're new here. If you want to get involved, click one of these buttons!
function fnShowUpload(){
$(\"#dialogUpload\").dialog({
bgiframe: true,
autoOpen: false,
height: 300,
width: 250,
modal: true,
buttons: {
'Upload Files': function() {
alert('upload'); //this fires
$(\"#multiUpload\").uploadifyUpload(); //nothing happens
},
'Clear Queue': function() {
alert('clear'); //this fires
$(\"#multiUpload\").uploadifyClearQueue(); //nothing happens
},
'Cancel': function() {
$(this).dialog('close');
}
},
close: function() {
}
});
$(\"#multiUpload\").uploadify({
\"uploader\" : \"<s:url value='/js/jquery/uploadify/uploadify.swf'/>\",
\"script\" : \"<s:url value='jsonUploadMultiple.action'/>\",
\"cancelImg\" : \"<s:url value='/js/jquery/uploadify/cancel.png'/>\",
\"folder\" : \"<s:url value='/documents'/>\",
\"multi\" : true,
\"auto\" : false,
\"scriptAccess\" : \"always\"
});
$(\"#dialogUpload\").dialog(\"open\");
}
<div id=\"dialogUpload\" title=\"Upload New Files\" style=\"display:none\">
<input type=\"file\" id=\"multiUpload\" name=\"multiUpload\"/>
</div>
alert('StartFileUpload:' + typeof (document.getElementById(jQuery(event.target).attr('id') + 'Uploader').startFileUpload))
function fnShowUpload(){
//added this
$('#multiUploadUploader').remove();
$(\"#dialogUpload\").dialog({
bgiframe: true,
autoOpen: false,
height: 400,
width: 450,
modal: true,
buttons: {
'Close': function() {
$(this).dialog('close');
}
},
close: function() {
$(this).dialog('destroy');
//added this
$(\"#uploadForm\").replaceWith('<form id=\"uploadForm\"><center><span>Please browse to up 20 files to upload</span><br><span>Hold down the \"Ctrl\" key to select more than one file</span><br><span>The upload will begin after you have selected your files</span><br><span>Please do not close this window until all files have completed uploading</span><br><br><input type=\"file\" id=\"multiUpload\" name=\"theFile\"/></center></form>');
}
});
$(\"#multiUpload\").uploadify({
\"uploader\" : \"<s:url value='/js/jquery/uploadify/uploadify.swf'/>\",
\"script\" : \"<s:url value='jsonUploadMultiple.action'/>\",
\"cancelImg\" : \"<s:url value='/js/jquery/uploadify/cancel.png'/>\",
\"folder\" : \"<s:url value='/documents'/>\",
\"multi\" : true,
\"auto\" : true,
\"fileDataName\" : \"theFile\",
\"scriptData\" : {\"folderId\" : $(\"#theTree\").dynatree(\"getActiveNode\").data.key},
\"onError\" : uploadifyError,
\"scriptAccess\" : \"always\"
});
$(\"#dialogUpload\").dialog(\"open\");
}
$('#multiUploadUploader').remove();
$(\"#uploadForm\").replaceWith('<form id=\"uploadForm\"><center><span>Please browse to up 20 files to upload</span><br><span>Hold down the \"Ctrl\" key to select more than one file</span><br><span>The upload will begin after you have selected your files</span><br><span>Please do not close this window until all files have completed uploading</span><br><br><input type=\"file\" id=\"multiUpload\" name=\"theFile\"/></center></form>');
<div id=\"dialogUpload\" title=\"Upload New Files\" style=\"display:none\">
<form id=\"uploadForm\">
<center>
<span>Please browse to up 20 files to upload</span><br>
<span>Hold down the \"Ctrl\" key to select more than one file</span><br>
<span>The upload will begin after you have selected your files</span><br>
<span>Please do not close this window until all files have completed uploading</span><br>
<br>
<input type=\"file\" id=\"multiUpload\" name=\"theFile\"/>
</center>
</form>
</div>
TypeError: Error #1010: A term is undefined and has no properties.
at uploadify_fla::MainTimeline/uploadify_cancelFileUpload()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at flash.external::ExternalInterface$/_callIn()
at <anonymous>()