Home : Annotations : Manipulating : Delete annotations using javascript
Q10222 - HOWTO: Delete annotations using javascript

Legacy Controls NOTICE

This article references our legacy Web Forms Web Viewing controls (WebImageViewer, WebAnnotationViewer, WebThumbnailViewer). It is preserved for archival purposes, but support strongly recommends using our modern HTML5 web controls: WebDocumentViewer, WebDocumentThumbnailer instead)

http://atalasupport.net/demos/LegacyDemos-11.1/WebViewingDemo.zip

Main Article Content

In the DotImage ASP.NET Web Demo, there is an error with deleting annotations on the client side.  The bug is found in the WebFormsDemoAnnotationsCmds.js page:

Currently, it is written as this:

function DeleteAnno()
{
var layer = _currentAnno.getParent();
layer.Delete(_currentAnno.getZIndex());
}

You will want to change it to look like this:

function DeleteAnno()
{
var anns = WebImageViewer1.getSelectedAnnotations();
WebImageViewer1.DeleteAnnotations(anns);
}

This error is found in Visual Studio 2003 and 2005 C# and VB.Net demos.

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.

Powered By InstantKB.NET v1.3
Copyright © 2002, 2019. InstantASP Ltd. All Rights Reserved