This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 15385
    
    6
I answered it here: http://www.coderanch.com/t/121174/HTML-JavaScript/HTML-Button-action-help

Closing this thread

Eric
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Browse Button validation
 
It's not a secret anymore!