jQuery trigger uploadify click event not working in firefox FF
- by drew
I want to select an option on a drop down box and for this to trigger the uploadify available to jQuery which lets you upload a file.
My solution works in IE7 but not FF.
When you change the drop down it should show a window to browse for a file to upload. In FF nothing appears. In IE everything works.
JS is enabled in FF, if I insert alert messages it gets to the point of triggering the click on the input button.
0
1
$(document).ready(function() {
$('.fileupload1').uploadify({
'uploader' : '../../../admin/uploadFileResources/uploadify.swf',
'script' : '../../../admin/uploadFileResources/upload.cfm',
'cancelImg' : '../../../admin/uploadFileResources/cancel.png',
'folder' : '../../../upload_BE/offers/htmlfiles/5953/images/',
'multi' : true
});
$('.selectLogoTop').change(function(){
$('.fileupload1').trigger("click");
});
});