|
Rank: Newbie Groups: Member
Joined: 1/19/2008 Posts: 2
|
After using AJAXUploader to upload file there is button "Delete Selected Files", how do I write custom JavaScript function to delete files instead.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You will not be able to. This is before the page is submitted, so it's similar to user type a character in a textbox and then decide to delete it. You can however customize the uploader's LayoutTemplate to remove the delete button.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 1/19/2008 Posts: 2
|
But the files have been uploaded and that is the reason for "Delete selected Files" is it posseble to write custom JavaScript to do the same thing as the "Delete Selected Files" button.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Yes. There is a reason for it that's why there is a "Deleted Selected Files" button. :) You can customize it but unfortunately you can not do the same in your code. The related JavaScript function/objects are not made public.
|
|