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

ImageUploader.TimeFormat Property

Supported in: ActiveX , Java

Format for time display in progress dialogs.

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("TimeFormat", "Appearance=Words;PresentDirection=HMS;DigitsFormat=N;HideZero=TRUE");
//...other params...
iu.writeHtml();
</script>

Get/Set Value in Runtime

JavaScript
getImageUploader("ImageUploaderID").setTimeFormat(value);
value = getImageUploader("ImageUploaderID").getTimeFormat();

Property Value

A string value that specifies a format using the following syntax:

variable1=value1;variable2=value2;...

The order and case sensitivity are not important. Possible values are:

Appearance
Sets the view. Possible values: Words (standard), ColonSeparated (XX:XX:XX).
PresentDirection
Sets the order of the output of time. Possible values: any possible combinations of H, M and S symbols.
DigitsFormat
Display or not the leading "0", if a particular value is less than 10. Possible values: N, NN.
HideZero
Hide or not zero values. Possible values: TRUE, FALSE.

Default value is "Appearance=Words;PresentDirection=HMS;DigitsFormat=N;HideZero=TRUE".

Remarks

This property is necessary for localization of Image Uploader.

Here is an examples of the usage of this property. Say, you set the following value for it:

Appearance=Words;PresentDirection=HMS;DigitsFormat=N;HideZero=TRUE

Then all time values will be displayed like this:

5 minutes 30 seconds

or this:

1 hour 15 minutes 30 seconds

See Also

Reference