Einzelnen Beitrag anzeigen
  #2 (permalink)  
Alt 09.06.2010, 16:59
Benutzerbild von uspri
uspri uspri ist offline
Erfahrener Benutzer
XHTMLforum-Mitglied
 
Registriert seit: 04.07.2005
Beiträge: 900
uspri sorgt für eine eindrucksvolle Atmosphäreuspri sorgt für eine eindrucksvolle Atmosphäre
Standard

Zitat aus der offiziellen Doku:
Zitat:
uploadifySettings
Changed

A function used to change options for a fileUpload object.

Two arguments are available, one is required:
setting: The option to change.
value: The value to change the option to. If left blank, this function will return the current value of the setting.

The following example will change the upload folder to ‘/uploads’:
$(‘#someID’).uploadifySettings(‘folder’,'/uploads’);

The following example will return the simUploadLimit:
$(‘#someID’).uploadifySettings(’simUploadLimit’);


The following options can be changed:
buttonImg, buttonText, cancelImg, fileDesc, fileExt, width, height, folder, script, scriptData, simUploadLimit, sizeLimit, hideButton

The following will return the current size of the queue
#(‘#someID’).uploadifySettings(‘queueSize’);

When using scriptData enter it in {key1 : value1, key2 : value2, …} format.

#(‘#someID’).uploadifySettings(’scriptData’, {‘name’ : some.val()});

If the key already exists it will update it, if it doesn’t exist it will add it. You no longer need to re-write every key/value pair. When requesting scriptData it will return the key/value pairs as an object.
Mit Zitat antworten
Sponsored Links