aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Setting the focus on an image on selecting a radio button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Setting the focus on an image on selecting a radio button" Watch "Setting the focus on an image on selecting a radio button" New topic
Author

Setting the focus on an image on selecting a radio button

Apurba Chakraborty
Greenhorn

Joined: Oct 06, 2005
Posts: 2
Hi fellow Ranchers,

In my application, I have the requirement that I need to set the focus on the 'Submit' button, which is actually an image, on selecting a radio button....It looks simple but I could do it if it had been a button, textbox, textarea, frame and window but this image thing is giving me some discomfort for quite some time....Please help me out............

Thank You in advance,


<b><i>Cheerz Aplenty,</i></b><br />Apurba<br />SCJP1.4<br /> <br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr><i>If Life is a Software Program, define your own language to write it and make it run on Open Source............</i><hr></blockquote>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61226
    
  66

images are not focusable elements. In order for your image button to obtain focus you will need to implement it as an input element of type image, or as a button element wrapping an image.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Apurba Chakraborty
Greenhorn

Joined: Oct 06, 2005
Posts: 2
Hi Bear,

Thanks a lot for your suggestion..I'll surely try that out and let you know if it worked..And also thank you for the whole lot of information you have provided in those links, it's really helpful....

Thanks and Regards,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting the focus on an image on selecting a radio button