call javascript function when click on Image!!

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
rohan123
Posts: 5
Joined: Wed Feb 20, 2008 10:03 am

call javascript function when click on Image!!

Post by rohan123 » Thu Feb 28, 2008 12:15 pm

hi!

I want to call a Javascript function when someome click on image!! i use Imagemap butits for directing to a page.. now i dont want "series" & "category" which passed by default.. Just call "myfunc" when user click on part of image..

Any help will be appreciated!!

ArtieFufkin
Posts: 4
Joined: Tue Feb 26, 2008 9:36 pm

Post by ArtieFufkin » Thu Feb 28, 2008 10:52 pm

I think you want to look into over riding the default Mouse Behavior on the Chart Panel so you can perform your Java Script code.

You can start by writing a class that extends Chart Panel and implement your own mouse action behavior in there.

Locked