E
E
Evgeny Karpov2017-04-16 20:08:52
MODX
Evgeny Karpov, 2017-04-16 20:08:52

How to pass title from MIGX to magnithic popup?

The problem is that migx generates the title after popup inspects the DOM and SRCtitle does not contain the title generated by migx, AND when the window is called, the title variable is undefined. How to pass title values ​​to popup before migx creates elements in page???

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Froggyweb, 2017-04-16
@Froggyweb

you take it wrong

migx generates title after popup inspects DOM

This is not true. it’s just that you have scripts in the header, so they work out before the document loads the
standard solution
$(window).on("load", function(){
 // вызов твоего плагинаж
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question