Skip to main content

Bug Tracker

Side navigation

#3396 closed bug ()

Opened September 23, 2008 11:46AM UTC

Closed November 11, 2010 11:09PM UTC

Assigning click to area map doesnt work if not previously assigned to image

Reported by: inspiraller Owned by: brandon
Priority: major Milestone: 1.3
Component: event Version: 1.2.6
Keywords: areamap Cc: inspiraller, flesler
Blocked by: Blocking:

1) On document ready function I assign a function - alert('area clicked') - to all area nodes in 'areaMap1'.

2) On Image mouse over I assign image[0].useMap = "#areaMap1";

3) On clicking the area, an event should fire and call the alert function, but it doesn't.


If I put the onclick in the html, <area onclick="alert('area clicked')">

It does work.

Can you explain this. Thanks

Attachments (1)
  • areatagtest.html (1.2 KB) - added by morgan October 08, 2008 03:38PM UTC.

    working test case

Change History (4)

Changed September 23, 2008 11:00PM UTC by flesler comment:1

cc: → inspiraller, flesler
need: ReviewTest Case

Can you make a concrete test case out of this ?

A small html file with the needed js and markup.


Changed October 08, 2008 03:40PM UTC by morgan comment:2

This test case shows that simply binding a click to an area works. You'll probably have to explain more detailed how you are assigning the handlers.

Changed October 14, 2010 03:14AM UTC by snover comment:3

status: newpending

This ticket has been marked as missing a test case. In an effort to reduce the number of outstanding tickets in the bug tracker, it will be closed automatically in 30 days. In order to prevent this from happening, please provide a working test case. If a test case has already been provided and our records are wrong, please respond to the ticket so that it can be fixed. Thank you!

Changed November 11, 2010 11:09PM UTC by trac-o-bot comment:4

status: pendingclosed

Automatically closed due to 14 days of inactivity.