|
||
| Inside Technique : Web Annotator : Design Issues/ Download Files Some Design
Shortcomings: Finally, and the biggest flaw by far, is this document is not intended as a real time discussion document. This means, if two users are annotating the same document, one will overwrite the others changes. You can change this behavior by modifying the code to check for a last modified time and date. If you find the document was edited by someone else, you can either try to take any changes to the document still open, and merge them into the document that was just saved or create a new file. This obviously requires considerably more effort and code and will be the subject of a follow up article using xml to store users, comments and timestamps. What's left: We now have prototype
that allows users to add comments to a web page and save it back to the server.
Several of the techniques discussed could have been handled using different
approaches to get the same results. Hopefully this has opened up some new doors and new opportunities for you. A few scenarios you could develop from this are an web based html editor, a custom file creation tool that lets users copy and paste html from other documents into the annotated one or a discussion page that can pull connected users from an xml file and load the latest changes into the document. Sample Files happy coding..
About the author:
Page 1:Web Annotator © 1997-2000 InsideDHTML.com, LLC. All rights reserved. |