Uploader | Uploadify を prototype.js で扱えるか?

37 views
Skip to first unread message

custar

unread,
Sep 8, 2009, 10:41:37 PM9/8/09
to CakePHP-ja
cake に関係ないけど...

jQuery で作られた Uploadify だが、prototype.js からでも使えるかどうか、
flash の ActionScript を読んでいたら、jQuery の記述が直接書き込まれていた。


jquery
---
- uploadify
http://www.uploadify.com/demo/
# もうちょっと中立的に

- SWFUpload jQuery Plugin
http://blogs.bigfish.tv/adam/2009/06/14/swfupload-jquery-plugin/
# もう swfupload は勘弁して

- Ajax upload
http://valums.com/ajax-upload/
http://bakery.cakephp.org/articles/view/comfortable-ajaxuploads-with-cakephp
# 未熟


mootools
---
- FuncyUpload
http://digitarald.de/project/fancyupload/http://digitarald.de/project/fancyupload/
# mootools いいんだけど...

custar

unread,
Sep 8, 2009, 11:11:17 PM9/8/09
to CakePHP-ja
> - uploadifyhttp://www.uploadify.com/demo/
> # もうちょっと中立的に

とは書いたが、
jquery をライブラリの一部として扱えば、特に問題はない。
控え目な jquery。

- Including jQuery before Other Libraries
http://docs.jquery.com/Using_jQuery_with_Other_Libraries#Including_jQuery_before_Other_Libraries

custar

unread,
Sep 12, 2009, 3:34:17 AM9/12/09
to CakePHP-ja
uploadify の options で

'fileExt': [
'*.jpg;*.png;*.gif',
'*.jpg',
'*.png',
'*.gif'
].join('|'),

'fileDesc': [
'JPG, PNG, GIF Images',
'JPG Images',
'PNG Images',
'GIF Images'
].join('|'),

として、拡張子ごとに分ける。

documentation v2.1.0
http://www.uploadify.com/documentation/

custar

unread,
Oct 6, 2009, 6:03:57 AM10/6/09
to CakePHP-ja
cakephp-1.2.4

book には記述がなかったが、
RequestHandlerComponent には isAjax() の他に isFlash() がある。

//
function isFlash()
{
return (preg_match('/^(Shockwave|Adobe) Flash/', env
('HTTP_USER_AGENT')) == 1);
}
Reply all
Reply to author
Forward
0 new messages