This documentation is for the old version. Go to the latest Upload Suite docs

ImageUploader.ViewChange Event

Supported in: ActiveX , Java

Raised when the view mode of folder or upload pane is changed.

Syntax

JavaScript
<script type="text/javascript" src="iuembed.js">  </script>
<script type="text/javascript">
function ImageUploaderID_ViewChange(Pane) {
	//...your code...
}
var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500);
//...params...
//...other event listeners...
iu.addEventListener("ViewChange", "ImageUploaderID_ViewChange");
//...other event listeners...
iu.writeHtml();
</script>

Parameters

Pane

A member of this enumeration which specifies a pane where the view mode is changed:

A member of the following enumeration:

String valueInteger valueDescription
FolderPane0

A folder pane (which displays the current folder content).

UploadPane1

An upload pane (which displays files from the upload list).

Note

When you get this value through JavaScript, an integer value will be returned.

Remarks

Typically you should use this event when it is necessary synchronize HTML user interface with view mode of Image Uploader. For example, if you add dropdown list which toggles view modes, this event enables you to update dropdown state if the view mode is changed through the context menu of the Image Uploader.

See Also

Manual

Reference