Closed Lechus closed 9 years ago
Error looks similar to: https://github.com/adobe-webplatform/Snap.svg/issues/209 But I do not do any transform or append.
Looks like the div is not present/accessible before js code is executed in FF?
In FF you need to wait before div will be accessible. Looks like a problem with FF.
@Lechus How did you actually fixed your problem? How do you notice whether the map container div is accessible or not?
@andi1984 : Browsers execute code two times and on the first time div is not accessible. Only Firefox throws exception and stops working. So I added checking if div is accessible with jquery.
if (jQuery(#divmap').length >0 )
On first testing it is false, but on second it works. Hope it makes sense.
HI,
I load jvectormap div with executing JS code (var map = new jvm.Map()...) with AJAX. It works in Chrome, IE, but does not work in Firefox. If everything is loaded at once, without AJAX, it works in Firefox. There is an error in FireBug console and In Browser Console (ctrl+shift+j) there is an error: