ASP.NET Ajax Javascript (Specification) | |
---|---|
ImageGear.Web.UI.ThumbnailView = function() {}; |
ASP.NET Ajax Javascript (Usage) | |
---|---|
var instanceVar = new ImageGear.Web.UI.ThumbnailView(); |
This ASP.NET client control is a thumbnail viewer. This control represents a single thumbnail, so in normal applications, you will need to have one ThumbnailView control on your page for each thumbnail you wish to display.
While it is possible to create an instance of this control using client-side JavaScript, you will normally create it by placing a server-side ThumbnailView control on an aspx page. If you wish to create an instance of this control using client-side JavaScript, take the following steps:
- Add an empty <DIV> to your HTML.
- Give your <DIV> a unique ID (Example:ThumbnailView1).
- Give your <DIV> a size, using either a CSS style sheet or an inline style. If your thumbnails will be arranged in a single column, set the width to 100% and the height to a size in pixels. If your thumbnails will be arranged in a grid, set both the width and height to a size in pixels.
- If using Microsft Ajax library, add the following code to your page.
$create(ImageGear.Web.UI.ThumbnailView,{ imageHandlerUrl: "ImageGearService.svc" }, null, null, $get("ThumbnailView1"));
- If using ImageGear jQuery Plugins, add the following code to your page.
$("#ThumbnailView1").ImGearThumbnailViewPlugin({ imageHandlerUrl: "ImageGearService.svc" });
Object
Sys.Component
Sys.UI.Control
ImageGear.Web.UI.ThumbnailView