N
N
Nikita Ivanov2015-03-19 18:13:16
JavaScript
Nikita Ivanov, 2015-03-19 18:13:16

How to make a modal window call, when clicking on a link, inside the Yandex map balloon?

There is a site serv.1gb.ru
The task is to open a modal window when clicking on a link inside the map balloon.
If the link is outside the map, everything is fine, the window opens.

But if you place it inside the balloon, nothing happens
There are no errors in the console.

I create a label like this:

mark = new ymaps.Placemark([56.0486773, 93.0647211], {
                            balloonContentHeader: "У Никиты",
                            balloonContentBody: "ул. Карла Маркса дом 177, кв. 51",
                            balloonContentFooter: "<a href='#' idparam='2' class='zapis-create'>Записаться</a>",
                            hintContent: "У Никиты"
                    }

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zdiii, 2015-03-22
@zdiii

Check out the Maps API! Everything is described down to the smallest detail. Before asking questions, read the instructions or documentation!

F
funber, 2015-10-22
@funber

I'm not sure, but perhaps the following example will help https://tech.yandex.ru/maps/jsbox/2.1/placemark_ba...
the point is to hang a listener when creating a balloon, because the map most likely cuts all external listeners,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question