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 Own style for Browse button in file element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Own style for Browse button in file element" Watch "Own style for Browse button in file element" New topic
Author

Own style for Browse button in file element

sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Hi

I am using a input type=file for file chooser in javascript. But the style of the Browse button is not looking good ... I want to make it in sync with the styles in my application.

I tried hiding the file element and adding my own button , which on clicking this will invoke the file.click() , but then submit is throwing some ACCESS DENIED in javascript

Can any one let me know if there is any solution for this ??
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
the file control has strict security...

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Own style for Browse button in file element