Hi, I'm using SWFUpload 2.2.0.1 with Flash 10. My swfupload_loaded_handler won't fire. How do I hide my 'classic' file upload field when SWFUpload succeeds to load?
Hi, I'm using SWFUpload 2.2.0.1 with Flash 10. My swfupload_loaded_handler won't fire. How do I hide my 'classic' file upload field when SWFUpload succeeds to load?
April 24, 2009 - 9:26am
We need more info. We don't see any problems with the swfupload_loaded event.
Double check your settings object and enable the debug setting. Check your debug info to see that swfupload_loaded_handler is set.
April 24, 2009 - 9:37am
From debug:
Event Handlers:
swfupload_loaded_handler assigned: true;
In my settings:
swfupload_loaded_handler : fooFunc,
In handlers.js:
function fooFunc(){
alert('we are go');
}
No errors in my JS console.
April 24, 2009 - 10:04am
To answer my own question: I had the swfupload HTML set to display:none; until it would finish loading. Using display:hidden instead works.
April 24, 2009 - 10:59am
You should test in all your target browsers. In some browsers display: hidden also prevents the flash from executing.
So far using width: 0 and height: 0 seems to work most consistently across browsers.