Open iframe manually in nyroModal?

I am trying to open nyroModal in an iframe directly from JavaScript.

To clarify, the following is not what I need:

$.nmManual(url); // not an iframe 

because it does not open the iframe.

This will also not work:

 <a href="http://someurl.com/" target="_blank" class="nyroModal">click me</a> <script type="text/javascript"> $(".nyroModal").nyroModal(); </script> 

because I really need to run it directly from JavaScript.

I looked through the documentation and I cannot find any obvious way to do this. Any ideas?

+1
source share
1 answer

$. nmManual can also be used to open iframes using filters:

 $.nmManual('http://someurl.com/', { callbacks: { initFilters: function(nm) { nm.filters.push('link'); nm.filters.push('iframe'); } } }); 
+3
source

Source: https://habr.com/ru/post/1395532/


All Articles