• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem in using map tag for mapping an action

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am facing a problem in mapping an action in my form.Actually,my form contains 2 hyperlinks(say h1,h2) and an image (say img1)and a submit button.
If I click the submit button the form has to perform an action say "loginaction.do" .If I click the link h1 then it has to perform some other action "enrollaction.do" If I click h2 or img1 I should perform the same action (say "activate.do")
for the hyper link h1 I coded it as
<html:link action"enrollaction.do">text</html:link>
For the image ideally it should be written as
<html:link action"activate.do"><img src../></html:link>

But the problem is the image I have is a huge one and I have a logo on the image.only that part of the image should act as a hyperlink.
so I used a map tag like

<img src="\images\activate_bttn.gif" width=254 height=48 usemap="#Map1">
<map name="myMap" id="Map1">
<area shape="rect" coords="30,10,150,40" href=" ActivationPage.html" alt="Activate Now" />
</map>

This works fine with HTML as such but how should I give an action attribute
to the <map> or is there any alternative to do this.
Only particular portion of the image should be clickable and it should perform some action.
Please help me!!
Thanks
Ranjith
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic