jQuery trigger uploadify click event not working in firefox FF
Posted
by
drew
on Stack Overflow
See other posts from Stack Overflow
or by drew
Published on 2011-02-08T15:23:21Z
Indexed on
2011/02/08
15:25 UTC
Read the original article
Hit count: 619
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"); }); });© Stack Overflow or respective owner