开发者

Defining onComplete function on uploadify, after running it

开发者 https://www.devze.com 2023-02-11 09:45 出处:网络
Is there a way to defi开发者_StackOverflowne a different (or even better, an additional) onComplete function to an already setup uploadify element?

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( ... ) { ... });
0

精彩评论

暂无评论...
验证码 换一张
取 消