Is there a way to defi开发者_StackOverflowne a different (or even better, an additional) onComplete function to an already setup uploadify element?
I thought I could use uploadifySettings, but that didn't seem to work.
The idea is something like this:
$('#file1').uploadify({
//normal uploadify options
});
//some more code ...
$('#file1').uploadifySettings('onComplete', function( ... ) { ... } );
Well I took a look at the source code of uploadify (always a good idea, apparently), and this works :)
$('#file1').bind('uploadifyComplete', function( ... ) { ... });
精彩评论