Rank: Advanced Member Groups: Member
Joined: 5/31/2007 Posts: 58
|
Hi,
for AJAXUploader there is a way to start upload by client side? (like eo_Callback of CallBackPanel)
Thanks Samuele
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
I don't think there are any. Why would you want to do so? The user needs to click the "Browse" button to specify a file anyway.
|
Rank: Advanced Member Groups: Member
Joined: 5/31/2007 Posts: 58
|
I'm in edit mode in model column of datagrid.. And i want uploading file when client press Update command of column. I think to make invisible UploadButton of AJAXUploader and inercept onclick event of Update Command Button of datagrid and ...
Code: JavaScript
startFileTransfert = function (uploader) {
var btn = document.getElementById(uploader + "_UploadButton");
if (btn) btn.click();
}
Thanks Samuele
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi Samuele,
I am not sure whether that is possible. When AJAXUploader uploads files, it's two step process: The first step transfering the file and the second step post the page back. The uploader does the first step, and your control (for example, the Update button in your command column) does the second step. So there are actually two "buttons": one for "upload" and one for "submit".
The first step MUST be completed before the second step begins. The pretty much rules out the possibility of combing these two buttons into one.
Thanks
|