Aurigma Image Uploader 5.0 Dual
ImageUploader.MessageSwitchAnotherFolderWarningText Property
See Also Supported in: ActiveX Java

Text of the warning message which is displayed when the user changes the current folder and some items are selected for upload in this folder.

# Syntax

##### Initialize

JavaScript | Copy Code
--- | ---
    <script type="text/javascript" src="iuembed.js"></script>
    <script type="text/javascript">
    var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500);
    //...other params...
    iu.addParam("MessageSwitchAnotherFolderWarningText", "You are about to switch to another folder. This will discard selection from selected files.

    To proceed and lose selection click OK.
    To keep the selection and stay in the current folder, click Cancel.");
    //...other params...
    iu.writeHtml();
    </script>

##### Get/Set Value in Runtime

JavaScript | Copy Code
--- | ---
    getImageUploader("ImageUploaderID").setMessageSwitchAnotherFolderWarningText(value);
    value = getImageUploader("ImageUploaderID").getMessageSwitchAnotherFolderWarningText();

##### Property Value

A string value that displays a message which warns that the selection will be lost when the user navigates to another folder. To disable this message, set it to an empty string.

Default value is "You are about to switch to another folder. This will discard selection from selected files.
To proceed and lose selection click OK.
To keep the selection and stay in the current folder, click Cancel.".

# Remarks

This warning is actual only in `TwoPanes` layout. In other layouts switching to another folder will not discard selection.

This property is necessary for localization of Image Uploader.

# See Also

##### Examples

Customizing Appearance
Localization