ImageGear for .NET User Guide > Using ImageGear for .NET > Using ImageGear.Web.UI Namespace > Using ImageGear jQuery Plugins |
JQuery plugins are provided for the following ImageGear ASP.NET web client controls:
These plugins are designed for use with the jQuery JavaScript library/framework. It is recommended that you use jQuery library versions that have support for the plugins. The ImageGear ASP.NET plugins will work in the absence of the Microsoft Ajax client library.
The table below shows the names of the plugins:
|
Control Name |
jQuery Plugin name |
1. |
PageView |
ImGearPageViewPlugin |
2. |
ThumbnailView |
ImGearThumbnailViewPlugin |
3. |
ImGearThumbnailList |
ImGearThumbnailListPlugin |
Example |
Copy Code |
---|---|
$(document).ready(function() {
. $('#PageView1').ImGearPageViewPlugin(options).openPage(openPageParams);
}); |
Step-by-step instructions for using ImageGear Plugins
HTML Example |
Copy Code |
---|---|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <div style="float:right"> <div id="pluginPageView" style="height:800px; width:800px"> </div> </div> </body> </html> |
The jQuery file should be included bfore the plugins or any other script files. Also note the order in which to include the files. |
Example |
Copy Code |
---|---|
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"> </script> <script type="text/javascript" src="Scripts/ImGearPlugins20.0.js"> </script> <script type="text/javascript" src="Scripts/ImGearCore20.0.js"> </script> <script type="text/javascript" src="Scripts/ImGearClientViewer20.0.js"> </script> <script type="text/javascript" src="Scripts/ImGearClientArt20.0.js"> </script> |
JavaScript Example |
Copy Code |
---|---|
<script type="text/javascript"> //Note: The URL for service path (in blue) if necessary, should be changed to reflect your Domain in the service path. $(document).ready(function() { $("#pluginPageView").ImGearPageViewPlugin({ imageHandlerUrl: "ImageGearService.svc" , resourcePath : “Images”, artServiceOption: ImageGear.Web.UI.ImGearArtDataServices.ArtDataService }).openPage({ documentIdentifier: "ccitt.tif", pageNumber: 3}); }); </script> |