Sign in to follow this  
oarecare

onclick

Recommended Posts

is there any way of creating an onclick handler without entering the data in the xml? like the fc_event, without creating separate xml for every map?

example: document.getElementById('youClicked').innerHTML='You clicked on '+objParams.lName;

rollOver and rollOut work fine, would like to use the same features onclick aswell.

Share this post


Link to post
Share on other sites

patched it by inserting id-link pairs

tried to do the following: onclick set a value in a div and a hidden element, onrollover change the div contents, onrollout revert to the value in the hidden div (last area clicked).

i am running into 2 issues:

1. onrollout does not fire every time

2. cannot get the clicked area to change color w/o reloading the xml

can we use js functions to change a certain area's color? like javascript:{for(i=0;i<50;i++) chart.unselectAreaId(i); chart.setSelectedAreaId=6; (even change to the rollover color).

reloading the xml for every user click is such a pain in the a$$...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this