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

ImageUploader.MessageSwitchAnotherFolderWarningText Property

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
<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
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.

Note

If you want to specify a multiline text use the "\n" sequence to separate lines.

See Also

Manual