imageUploaderFlash.type Property HTML5/Flash Uploader JavaScript

Supported technologies: Adobe FlashHTML 5

Gets or sets type or priority of HTML5/Flash Uploader controls.

Syntax

JavaScript Initialize
$au.imageUploaderFlash({
    //...other params...
    type: "html|flash",
    //...other params...
})
Get/Set Value at Runtime
$au.imageUploaderFlash('uploaderID').type(value);
value = $au.imageUploaderFlash('uploaderID').type();

Property Value

Type: String

Type or priority of HTML5/Flash Uploader controls.

Possible values are:

  • html|flash the HTML5 control is used by default and the Flash control is used if the browser does not support HTML5
  • flash|html the Flash control is used by default and the HTML5 control is used if the browser does not support Flash
  • html the HTML5 control is used; if the browser does not support HTML5 the message appears
  • flash the Flash control is used; if the browser does not support Flash the message appears

You can use this property to change default controls priority or to specify the only control to use.

Default value is "html|flash".

Example

JavaScript
var u = $au.imageUploaderFlash({
    id: 'Uploader1',
    type: 'flash|html'
});
u.writeHtml();

See Also

Reference