V
V
vistar2014-10-02 15:39:07
JavaScript
vistar, 2014-10-02 15:39:07

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>

The page also uses the manos.malihu.gr/jquery-custom-content-scroller and brandon.aaron.sh
libraries. Errors are generated in the console:
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)

Here: api-maps.yandex.ru/services/constructor/1.0/js
Maps work with disabled libraries.
Tried other scrollers - same error.
Clarification: tand.vps-private.net is an error in the wild.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pyhtin, 2015-08-06
@pyhtin

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 question

Ask a Question

731 491 924 answers to any question