Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

customizing button image for file upload using struts

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Anybody tried to give the customized "Browse" image for the file upload control using Struts. I am using FormFile object of the struts for uploading, which is not allowing me to attach my own "Browse" image. This is just to keep the uniform user interface, because I have some other "Browse" buttons in that page. Any help is very much appreciated.
Thanks,
sai kinnera
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have faced to this issue before. However, after several searching from the web, our conclusion is, we CANNOT customerize the Browse button if we make use of the tag <input type="file" ... >.

One article from Microsoft mentions that, in IE 4, we can use a gif as browse button. When this button is clicked, it invoke a JS to set the value of the file. However, this *property* is intentionally disabled in IE 5 and later versions due to the security issues. Netscape has disabled this feature as well. Thus, we have no way to customize the browse button.

Nick
 
No, tomorrow we rule the world! With this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic