简单对比uploadify 2与uploadify 3 beta的使用差别

uploadify 2版本的使用方法很多,这里主要是简单对比一下两者调用上的差异。
主要是还是通过代码说话。自己在本地及远程都测试成功。

先说一下uploadify 3 beta的使用:
Html代码如下:




    Uploadify - Single and Multiple Sample
    
    

Multiple File Upload


    

checkScript, buttonText, simulataneous upload limit


    
You have a problem with your javascript

    Start Upload
      



    

然后再对比一下uploadify 2的使用:



You have a problem with your javascript

Start Upload

在选项的名称上以及调用的函数名上,相比2版,都有了很大的变动。不过官方的使用说明还没有出来,只有作者网站的一篇简单的说明:

For those of you who have been having issues with v2.x.x and want to update to v3.0 beta, here are some quick tips as to the changes made in the code…

First off, the folder option is no longer there. It’s more secure to do it in the PHP code so now it’s required to do so.

Secondly, the names of some of the events changed to be more descriptive. Here is a list of the event names:
onClearQueue, onDialogOpen, onDialogClose, onInit, onQueueComplete, onSelectError, onSelect, onSWFReady, onUploadCancel, onUploadComplete, onUploadError, onUploadProgress, onUploadStart

You’ll notice some of them just have “upload” appended to them.

Everything else is pretty much the same, except for the default button. It’s no longer created in flash, but as a CSS3 button behind the invisible flash element. This makes it easier to style to your liking.

Hope this helps those of you who are trying to use v3.0b until I can write out all the documentation.

“简单对比uploadify 2与uploadify 3 beta的使用差别”的6个回复

发表评论