Welcome Guest Search | Active Topics | Sign In | Register

AJAXUploader question Options
Samuele
Posted: Wednesday, July 18, 2007 10:09:51 AM
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
eo_support
Posted: Wednesday, July 18, 2007 10:13:42 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
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.
Samuele
Posted: Wednesday, July 18, 2007 10:41:19 AM
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
eo_support
Posted: Wednesday, July 18, 2007 10:56:18 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.