Aurigma Image Uploader 4.8 Dual
ImageUploader.ViewChange Event
See Also Supported in: ActiveX Java

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

# Syntax

JavaScript | Copy Code
--- | ---
    <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 value | Integer value | Description
  --- | --- | ---
  FolderPane | 0 | A folder pane (which displays the current folder content).
  UploadPane | 1 | 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 property 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

##### Examples

Adding View Mode Switch
User Quota Sample

##### Reference

FolderView Property
UploadView Property