Adding a New Annotation
Like viewing an annotated Web page, adding a new annotation to a Web
page requires a lot of interaction with HyperGloss scripts:
- A script looks through the HTML souce code in order to see how
many times the annotated text appears on the page.
- If the annotated text is not on the page, the annotation is not
allowed to be made.
- If the annotated text appears more than once, a separate script
is run to determine the actual instance of the page that is being
annotated.
- All the links from the page are removed.
- Superscript links are added to each instance of the annotated
text.
- The user is then asked to choose which instance is the one
that was intended.
- Once the correct instance of the text has been found, or if there
was only one instance, the context for the annotated text is
grabbed and stored along with the basic information for the
annotation and the instance number of the annotated text.