File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Browse Button validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

Browse Button validation

Shrikanth Nekkanti
Ranch Hand

Joined: Jul 12, 2007
Posts: 48
I have a browse button when user selects none and clicks upload i want to display an alert prompting user to select file for upload.

how to write javascript function for this.

I have created browse button like
<input type="file" name="data" >
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I answered it here: http://www.coderanch.com/t/121174/HTML-JavaScript/HTML-Button-action-help

Closing this thread

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Browse Button validation