Not ready to write your own BrowserPlus™ scripts yet? The tools on these pages allow for easy BrowserPlus integration on your website. Just include a script, set some optional parameters and watch as your site becomes easier to use.
1 InstallerBuild an in-page BrowserPlus installation experience by including a small javascript library and writing single line of code. The end user will be presented a step-by-step guide to install BrowserPlus. |
2 NotificationsProvides native notifications that appear in a native desktop window or a HTML div if BrowserPlus is not installed. |
3 UploaderProvides file upload functionality that goes beyond the basic browser-based methods, including support for drag & drop from the desktop, mime type filtering, multiple file selection, simultaneous file uploading and real progress tracking. |
The BrowserPlus™ Uploader tool allows you to easily create an advanced uploader widget that supports native drag+drop from the desktop, multiple file selection from the file browse dialog, multiple simultaneous uploads (3 files at a time), and Zip file compression. Skinning is also possible with plenty of parameters that may be overridden to specify colors, fonts, labels and borders. All of this is packaged into two Javascript files (browserplus-min.js and uploader-min.js) that weigh in at a combined 20KB of minimized Javascript.
To use the upload tool:
1 Create and place a block type element like div on your webpage. Specify the height and width of the element.
2 Include the base BrowserPlus library, and the advanced upload JavaScript library at the bottom of your webpage:
3 Create an instance of the Uploader tool and point it at your uploader element. The second argument contains configuration parameters, detailed below.
It's important to understand that this JavaScript library is a convenience wrapper around BrowserPlus services, and its use is completely optional. Much more flexibility and control is available by directly using the BrowserPlus JavaScript API.
4 Optionally customize the look and feel of the uploader. As a second parameter to create(), you may pass in a map with any of the follow parameters (defaults shown):
5 Optionally choose to have all files compressed and archived into a *.zip file before upload. Depending on the files being uploaded, this can save a lot of bandwidth.
NOTE: Directory structure is not preserved when zipping files in the Uploader tool. The path information is stripped and the files are all stored on the top level. If you need directory structure in a zipped file, check out the zipper code example.
6 Optionally register for one or more of the callbacks though the configuration parameters.
The fileCB() function is called when a file is added, selected, unselected, removed or uploaded.
The postCB allows you to associate extra data with each file that is then passed as POST data when each file is uploaded. You may write a small form that connects to the uploader widget through file select/unselect events which then allows the user to provide a description of each file uploaded.
The uploadCB is fired when all files have been uploaded.
You are notified of constraint violations when you register the constraintCB. You may wish to show an error message if any of the constraints are violated.
Copyright © 2010 Yahoo! Inc. All rights reserved.