JavaScript API under Chrome 4.1+ and FireFox 3.6+

Upload core product.
Post Reply
User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

JavaScript API under Chrome 4.1+ and FireFox 3.6+

Post by support »

You may notice issues with setRegularParameter(...), getRegularParameter(...), setExtraParameter(...), getExtraParameter(...) and cancelTransfer(...) JavaScript functions under Chrome 4.1+ and FireFox 3.6+ only (no problem under Safari or Internet Explorer).

Issues could be:
Under Chrome: Uncaught TypeError ... is not a function.
Under FireFox: No effect to JavaScript function call (no error)

We've fixed these issues under JFileUpload 2.7 and JSAPI 2.7. It impacts the JavaScript API and you will have to update the JavaScript calls as following:

Code: Select all

getRegularParameter(name) becomes getRegular(name) 
setRegularParameter(name, value) becomes setRegular(name, value) 
getExtraParameter(name) becomes getExtra(name) 
setExtraParameter(name, value) becomes setExtra(name, value) 
cancelTransfer() becomes cancel()
Notice that existing JavaScript functions are not removed for backward compatibility.

Release 2.7 are available for customers. Our online demonstration also use 2.7.

Post Reply