W
W
WigleWigle2015-07-15 12:47:22
JavaScript
WigleWigle, 2015-07-15 12:47:22

How to display javascript in fancybox popup window?

On the site compressor1.ru I put a fancybox popup (button - request a call). I hid the application form script from amoCRM in the window.

<div style="display:none" class="fancybox-hidden" style="width: 500px; height: 300px;"> 
<div id="contact_from_pop">               
  <script>var amo_forms_params = {id:"864", hash: "d7a3d4625960e214115215113ff18410"};</script><script id="amoforms_script" async="async" src="https://forms.amocrm.ru/forms/assets/js/amoforms.js"></script> </div>
 </div>

But the form is not showing. Though if to push the standard form - works.
I twisted the settings. I tried the inline content, the frame, etc., does not want to work at all.
Prompt in what business can be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2015-07-15
@AndreyMyagkov

remove display:none and make sure the form is rendered
then make sure the popup fires

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question