SlickUpload
Welcome Guest Search | Active Topics | Log In | Register

Remove "Please select file" message when file selected? Options
mm
#1 Posted : Saturday, November 14, 2009 9:20:55 AM
Rank: Newbie

Groups: Registered

Joined: 10/3/2009
Posts: 3

I'm using a custom validator to force a file selection.  This works fine.  I would like to hide this message once a file has been selected. Is there an event than I can wire into to hide the validator?  Do you have an example that does this?

 

Thanks,

J

 

Axosoft
#2 Posted : Monday, November 16, 2009 7:36:41 AM
Rank: Administration


Groups: Administrators

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ

So you want to hide an element on the page when a file is selected and show it when it is not? Or do you want to rerun validation every time a file is selected? Either way, the basic principle is the same. Wire up the OnClientFileAdded and OnClientFileRemoved events to a single event handler, and then write some code like the following:

function OnSlickUploadFileChanged(file)
{
if (kw.get("<%=SlickUpload1.ClientID %>").get_Files().length > 0)
// at least one file is selected
else
// no files are selected
}

Replace "SlickUpload1" with the ID of your SlickUpload control and the comments with the logic you want to do (hide element, rerun validation, etc.).

Users browsing this topic
Guest
Forum Jump  
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.