This function removes the JavaScript events that were added by the enablePanWindow function. These JavaScript events are used by the ImageKit and PanWindow controls in the client side browser.

[JavaScript]disablePanWindow(strImageKitId, strPanWindowId);

Parameters

strImageKitId: The html id of the ImageKit Web Control. Type: string

strPanWindowId: The html id of the PanWindow Web Control. Type: string

Return Value

None

Explanation

The disablePanWindow function is a JavaScript function that removes the JavaScript events that were added by the enablePanWindow function. These mouse and scroll events are necessary so that the ImageKit and PanWindow web controls can work together in the client browser. In the sample code below, we have placed the disablePanWindow function in a button click event. The disablePanWindow function can be placed in other events as well. To register the mouse and scroll events used by the ImageKit and PanWindow web controls, execute the enablePanWindow function.

Sample code

The highlighted html code excutes the disablePanWindow function and the enablePanWindow function in button click events. The ImageKit control's ID and the PanWindow control's ID are passed to the two functions as strings.



See Also

ImageKit Members | Newtone.ImageKit.Web.ImageKit

 

The ImageKit WPF is created by Newtone Corporation