Welcome Guest Search | Active Topics | Sign In | Register

AJAXUploader, write client script to delete uploaded files Options
Viðar
Posted: Saturday, January 19, 2008 8:20:02 AM
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.
eo_support
Posted: Saturday, January 19, 2008 9:03:15 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
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
Viðar
Posted: Saturday, January 19, 2008 9:10:44 AM
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.
eo_support
Posted: Saturday, January 19, 2008 9:19:08 AM
Rank: Administration
Groups: Administration

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


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.