Answer the question
In order to leave comments, you need to log in
How to fix z.parentNode is null error when using Yandex.maps constructor and jquery-custom-content-scroller?
Map generated here: api.yandex.ru/maps/tools/constructor
<script type="text/javascript" charset="utf-8" src="//api-maps.yandex.ru/services/constructor/1.0/js/?sid=3NwmW5FUI9UYKRz_9--XkXxyfhSj2A-U&width=600&height=450"></script>
TypeError: z.parentNode is null
...Id(s)}n=g();if(k){k.appendChild(n)}else{z.parentNode.insertBefore(n,z)}v(n);if(z...
?sid=Sh...2772225 (строка 1, столбец 815)
TypeError: z.parentNode is null
...Id(s)}n=g();if(k){k.appendChild(n)}else{z.parentNode.insertBefore(n,z)}v(n);if(z...
?sid=Sh...ght=289 (строка 1, столбец 815)
Answer the question
In order to leave comments, you need to log in
Faced a similar problem (probably). As a result, it helped to add id=deliverymap to the src of the Yandex map script, where deliverymap is the identifier of the container into which the map is inserted, without this I got the error "TypeError: null is not an object (evaluating 'z.parentNode.insertBefore')"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question