开发者

Open iframe manually in nyroModal?

开发者 https://www.devze.com 2023-03-30 06:54 出处:网络
I am trying to get nyroModal to open in an iframe, directly from JavaScript. To clarify, the following is not what I need:

I am trying to get nyroModal to open 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 an 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 launch it directly from JavaScript.

I've looked through the documentation, and I can't find any obvious way to do this. Any ideas?


$.nmManual can also be used to open an iframe, using the filters:

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

精彩评论

暂无评论...
验证码 换一张
取 消