我正在尝试让 nyroModal 直接从 JavaScript 在 iframe 中打开.
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
因为它没有打开 iframe.
because it does not open an iframe.
这也行不通:
<a href="http://someurl.com/" target="_blank" class="nyroModal">click me</a>
<script type="text/javascript"> $(".nyroModal").nyroModal(); </script>
因为我确实需要直接从 JavaScript 启动它.
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 也可用于打开 iframe,使用过滤器:
$.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');
}
}
});
这篇关于在 nyroModal 中手动打开 iframe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
用于创建头像的 jQuery/JavaScript 库?jQuery/JavaScript Library for avatar creation?(用于创建头像的 jQuery/JavaScript 库?)
如何做以下掩码输入问题?How to do following mask input problem?(如何做以下掩码输入问题?)
使用 DropKick Javascript 设置值/标签的问题Issues Setting Value/Label Using DropKick Javascript(使用 DropKick Javascript 设置值/标签的问题)
如何对 jquery 插件中的私有方法进行单元测试?how to unit-test private methods in jquery plugins?(如何对 jquery 插件中的私有方法进行单元测试?)
stellar.js - 为垂直滚动网站配置偏移量/对齐元素stellar.js - configuring offsets / aligning elements for a vertical scrolling website?(stellar.js - 为垂直滚动网站配置偏移量/对齐元素?)
jQuery 屏蔽输入插件.当文本框获得焦点时选择所有jQuery masked input plugin. select all content when textbox receives focus(jQuery 屏蔽输入插件.当文本框获得焦点时选择所有内容)