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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
Access Denied When Submitting File Upload
HTML DOM to create file upload button(Browse)
applying CSS to input type="file"
Display jpeg file in jsp page
browse button label with html:file