English 中文(简体)
YUI Uploader 2.6.0 示例
原标题:
  • 时间:2008-10-15 14:25:35
  •  标签:

我正在尝试使用一些YUI-Uploader的示例和说明,但由于许多问题,我感到沮丧。

  1. The "YUI Library: Uploader" cheat sheet s simple use case doesn t work for me because all the listed methods except addListener() do not exist on the myUploader object.
  2. The example is for version 2.5.1 and includes a method called browse(), which not only was removed in version 2.6.0 but I cannot find any documentation for how to use the 2.5.1 version if I so choose.
  3. I can t find the source FLA to the uploader.swf file so that I could theoretically diagnose all these issues.

有人成功使用过2.6.0 YUI上传器吗?如果有的话,有什么常见的干扰JavaScript应该避免,或者更好的示例可以遵循吗?谢谢。

谢谢回复。

I might note that I finished my "uploader" project before receiving any responses to this. Part of my problems were due to some of the examples being for v2.5.1 and another part were due to not using an event listener to see when the component was ready. I got the most help from just dissecting what Flickr did.

最佳回答

现在可以在GitHub上找到YUI源代码,Uploader.as中可以找到uploader.swf文件的源代码。

问题回答

您的简单示例链接有误,这是正确的链接。

YUI上传器简单示例

如果您感兴趣,您也可以查看我的实现,它非常基础,并且使用 YUI 2.6.0 可以完美工作。

Tivac.com YUI上传组件实现

看起来 #1,您正在尝试立即调用上传者的方法。相反,您应该为它可以触发的所有事件添加监听器,并在“contentReady”事件触发后进行任何配置。所有的 YUI 示例和我的示例都是这样做的,因此您可以在那里检查代码样本。





相关问题
热门标签