A while ago I asked the question if anyone has done drag and drop of documents into folders in a Domino web application.
No one responded but there was a suggestion of using Yahoo YUI library. So I took the suggestion and ran. Using Ajax technique and I was able to prototype a web doc library with drag & drop functionality. For those of you who are interested here is the working sample,
http://www.netfyi.com/webdoclib.nsf/folder.htm
Feel free to try it out, but don’t go all crazy or I’ll have to take it down. To drag and drop, click on the subject row entry and drag. I’d be happy to share my experience for interested parties. BTW, I only tested on IE.
While working on it I wanted to retain some of Notes doc lib functions. I also added some other functions. Here is a summary of the functions:
-
Right-click on the folder and be able to a context menu of “Add”, “Rename”, “Delete” the folder. Of course, in the backend folders are being created, rename, and deleted in Notes. Also, if you delete a folder with sub-tree folders, they will be recursively pruned.
-
A drag and drop indicator to show a red stop sign if the target is not yet a dropable folder. It turns to a green check sign when the target is dropable.
-
Right-click on trash can and be able to empty the trash. Do not too much of it cause the documents will be gone for good. Leave some documents for others to play with.
-
An intelligent sensor for a view or folder to show “prev” and “next” links only when documents are available.
-
When search, show # hits and weight icon.
-
When open a search document, it highlights searched keyword in green.
-
When open a document, one can e-mail the document in HTML format.
-
When e-mail a document, one can enter the “From” e-mail directly in a combo drop-down box.
There are bunch of ideas you can do with a context menu, of course. For example, right click on a document entry and be able to “delete” it, “print” it, add the document to a folder, etc. Also, on the bottom you can see the debug messages.
I welcome your feedback!!