jeffreykemp / jk64-plugin-reportmap

Report Google Map APEX Plugin
https://jeffreykemp.github.io/jk64-plugin-reportmap/
MIT License
42 stars 16 forks source link

.reportmap("click") error in firefox #88

Closed xCite1986 closed 4 years ago

xCite1986 commented 4 years ago

with firefox i got following error with javascript click api function

image

jeffreykemp commented 4 years ago

This is a known issue with some browsers (e.g. IE) with javascript calling jquery embedded in a href attribute (e.g. in the link attribute on a report column) and is not specific to this plugin.

The workaround is to wrap this in a function. In the page's Function and Global Declarations create a function like this:

function click_mymap (id) {
    $("#map_mymap").reportmap("click", id);
}

Change your report (or link) to:

javascript:click_mymap(id);
jeffreykemp commented 4 years ago

Documented https://github.com/jeffreykemp/jk64-plugin-reportmap/wiki/Issue:-some-browsers-show-%5Bobject-Object%5D-error-page