Bug Tracker

Opened 15 years ago

Closed 12 years ago

#3396 closed bug

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.

ALTERNATIVE 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 14 years ago.
working test case

Download all attachments as: .zip

Change History (5)

comment:1 Changed 14 years ago by flesler

Cc: inspiraller flesler added
need: ReviewTest Case

Can you make a concrete test case out of this ? A small html file with the needed js and markup.


Changed 14 years ago by morgan

Attachment: areatagtest.html added

working test case

comment:2 Changed 14 years ago by morgan

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.

comment:3 Changed 12 years ago by snover

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!

comment:4 Changed 12 years ago by trac-o-bot

Status: pendingclosed

Automatically closed due to 14 days of inactivity.

Note: See TracTickets for help on using tickets.