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 browser button as an image 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 "browser button as an image " Watch "browser button as an image " New topic
Author

browser button as an image

Karim eltounsi
Greenhorn

Joined: Jun 23, 2007
Posts: 16
Hi All, i need to set up a browser button but as an image instead of a regular HTML button. I'm using this code in a jsp page for the image button but its not uploading at all.




Any idea how to accomplish that. Thanks
[ July 17, 2007: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60049
    
  65

What are you expecting document.all.file to reference?

Struts tags are useless in this forum. What does it evaluate to?

Also, you do realize that document.all is IE only?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Karim eltounsi
Greenhorn

Joined: Jun 23, 2007
Posts: 16
the application will be running on IE only.
document.all
was just for testing to see if i can browse through the documents. do you know a better way to have a browser image button.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60049
    
  65

You seem to be focused on the problem being the image. How about answering my question?
Karim eltounsi
Greenhorn

Joined: Jun 23, 2007
Posts: 16
Pardon me what is your exact question.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60049
    
  65

Please reread my first post.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: browser button as an image
 
Similar Threads
Retrieving values of nested tags
Positioning DIVs
Client side validation not working
HTML does not print properly - table width exceeding 100%?
upload file in jsp