Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click Function #34

Closed
toton6868 opened this issue Sep 13, 2012 · 1 comment
Closed

Click Function #34

toton6868 opened this issue Sep 13, 2012 · 1 comment

Comments

@toton6868
Copy link

Its a very easy question and I am not web professional. I need to create an Interactive Map. I am using JQVMap. Now I need to click region and it will callback an URL of the state. I am giving and function that was given as example in the site. But I dont know how to setup the link with State and URLs. Do I need to store the URLs in a JS and call from there? or I can put the URLs directly under region code. Any Sample code will be enough for me. Please let me know. It will be very helpful to me.

@boron215
Copy link

onRegionClick: function (event, code, region) {
window.location.replace("http://sample.com/state-map/" + region.toLowerCase() + ". html");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants