I am using ElementIT's MultiPowUpload v3.3 and I have the standalone, Flash portion working. My problem is when I make the upload button invisible and need to trigger the upload via a standard form element button.
<form id="myform" name="myform" action="" method="post">
<select name="menu" MULTIPLE size="2">
<option value="1">some menu item 1</option>
<option value="2">some menu item 2</option>
</select>
<input name="text" type="text" value="some text">
<input type="hidden" name="hdn_frm_submit" id="hdn_frm_submit" value="Upload Files" />
<input type="submit" name="btn_sub" value="Submit Form">
<div id="MultiPowUpload_holder"></div>
<script type="text/javascript" src="Extra/swfobject.js"></script>
<script type="text/javascript">
var params = {
BGColor: "#FFFFFF"
};
var attributes = {
id: "MultiPowUpload",
name: "MultiPowUpload"
};
//MultiPowUpload partameters goes here
var flashvars = {
"serialNumber": "MY_SERIAL_NUMBER_INSERTED_HERE",
"uploadUrl": "insert_the_processing_page_here",
"formName": "myform",
"uploadButton.visible": "false",
"uploadButton.action": "2",
"useExternalInterface": "true"
};
//Default MultiPowUpload should have minimum width=400 and minimum height=180
swfobject.embedSWF("ElementITMultiPowUpload.swf", "MultiPowUpload_holder", "400", "250", "10.0.0", "Extra/expressInstall.swf", flashvars, params, attributes);
</script>
</form>
I have jQuery available on the page so I will place the Submit button click handler in the doc.ready section. How do I address the Flash uploader's Upload button with jQuery? Any feedback will be greatly appreciated.