Form button onClick event to control uploader(upload btn)



I have the problem talking about the uploader and form’s button.

form’s button can use myform.attachEvent("onButtonClick", function(name){ } , to control the button.

the uploader has the uploader’s button to upload the file into somewhere.

Now, I want to use the form’s button (onButtonClick event) to control uploader’s button to upload the file.

Could you please to help?
many thanks.


As this is not the form button but the uploader button you need to use the uploader API to control it.
Please, try to use the getUploader() method to get the uploader object allowing to use the Vault api: … oader.html