Using Plupload

My note on how to use plupload:

1. Create instance with configuration

2. Bind ‘Init’ Event for anything that want to do be done after plupload initialed.

3. call init()

4. Bind ‘FilesAdded’ Event to start action after select files for uploading (Example: add file to your upload list, or start uploading right away by call start())

5. Can call start() to start uploading files (Optional(I guess):call refresh() if need Reposition Flash/Silverlight)

6. Bind ‘UploadProgress’ Event when uploading (example: add some animation showing progress bar)

7. Bind ‘Error’ for handling failing uploading

8. Bind ‘FileUploaded’ for handling after the files have been uploaded. (example: show the uploaded picture url on the screen)

Just my note for steps how to use plupload (so I can use it on WordPress for uploading media files)

Post to Twitter Post to Plurk Post to Yahoo Buzz Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Ping.fm Post to Reddit Post to StumbleUpon

Read More

Zend Framework and jQuery Datepicker (updated)

In my last post, I showed how to use jQuery datepicker(“option”, [option | callback]) in my viewscript to add on my datepicker, so the #start_date and #end_date can interactive with each other. Today I found a better way to do that, so that I do not have to include the javascript code in my viewscript. By using Zend_Json_Expr, I can insert my code into jQueryParams. Here is my updated form, and you can see how it works.

(more…)

Post to Twitter Post to Plurk Post to Yahoo Buzz Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Ping.fm Post to Reddit Post to StumbleUpon

Read More

Zend Framework and jQuery Datepicker

I am pretty new to Zend Framework, and have been reading its reference for awhile. Today I was trying to work with Zend jQuery class and playing with datepicker. My task was trying to make two datepicker start_date and end_date, and so that after choosing the start_date, end_date will began from the selected start date (which will be using the demo code from the jQuery UI demo datepicker Event Search .

(more…)

Post to Twitter Post to Plurk Post to Yahoo Buzz Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Ping.fm Post to Reddit Post to StumbleUpon

Read More