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

ImageUploader.CacheGuiGraphics Property

Supported in: ActiveX , Java

Switch that enables/disables caching of image buttons (when XXXImageFormat properties are used).

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

Get/Set Value in Runtime

JavaScript
getImageUploader("ImageUploaderID").setCacheGuiGraphics(value);
value = getImageUploader("ImageUploaderID").getCacheGuiGraphics();

Property Value

A boolean value (true or false). If true, images specified in XXXImageFormat properties will be cached by the browser. It means that when the user reloads the page with Image Uploader, button images will not be downloaded from the server again, and local copy will be used. If false specified, Image Uploader will download button images every time the page is reloaded.

Default value is "false".

Remarks

If you enable user interface graphics caching, it is highly recommended to use the GuiGraphicsVersion property. It enables you to track changes in the graphics and update these images automatically.

See Also

Manual

Reference