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

ImageUploader.GuiGraphicsVersion Property

Supported in: ActiveX , Java

Version indicator of images used as buttons and icons of Image Uploader user interface.

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("GuiGraphicsVersion", "1");
//...other params...
iu.writeHtml();
</script>

Get/Set Value in Runtime

JavaScript
getImageUploader("ImageUploaderID").setGuiGraphicsVersion(value);
value = getImageUploader("ImageUploaderID").getGuiGraphicsVersion();

Property Value

A string value that identifies version of images used as buttons and icons. It is highly recommended to use unique value every time you update these images (e.g. incrementing numbers or GUID).

Default value is "1".

Remarks

This value is used so that Image Uploader could recognize when images are modified on the server and whether they should be updated in cache. Every time user interface graphics is downloaded and cached, Image Uploader remembers this value. When the user visits the page with Image Uploader one more time, it compares this value with the remembered one. If they differ, Image Uploader updates the user interface graphics cache.

Obviously it makes sense to use this property only when the user interface graphics caching is enabled (i.e. the CacheGuiGraphics property is set to true).

See Also

Manual

Reference