I've four jQuery tabs
, in second tab I'm showing map
using the openlayers library
then I'm getting following errors
Uncaught TypeError: Cannot call method 'clone' of null // onload error
Uncaught TypeError: Cannot read property 'w' of null // getting this error when zooming-in and out
I thought my code went wrong in initializing the openlayers map object
or somewhere
,but it was actually trouble with jQuery tabs
. If I'm placing map div
in first tab then its showing map
as expected.
I tried this but not solved the issue when placing map div
in second tab.
Update Below Content:
If I write jQuery tabs
code after the map object
creation then its working fine in chrome
but map destructing in firefox
.
How can we call initialize jQuery tabs
after execution of a user defined function?