开发者

Defining onComplete function on uploadify, after running it

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜