在地址行加载带有帮助链接的模式弹出窗口
Load modal popup with help links in address line
我正在尝试加载带有地址行中帮助链接的模式弹出窗口。什么也没发生。请帮帮我)
地址栏中的链接:http://site.ru/?data-toggle=modal&data-target=#mobes
<!-- link-->
<a href="#" data-toggle="modal" data-target="#mobes">link</a>
<!-- modal popup-->
<div class="modal fade" id="mobes" tabindex="2" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h2>Mobes</h2>
</div>
<div class="modal-body">
<center>
...My text..
</center>
</div>
</div>
</div>
</div>
因为我看到这是一个外部URL,所以不会加载这个URL。您将在控制台中看到跨原点访问错误。备选方案:您可以使用iframe。为您创建Fiddle。例如:
$(".modal-body").html('<iframe width="100%" height="100%" frameborder="0" scrolling="no" allowtransparency="true" src="'+url+'"></iframe>');
相关文章:
- Angular$scope在模式窗口内不起作用
- 更改不在引导模式窗口中工作的月份和年份
- TinyMCE全屏不允许出现模式窗口
- 自动模式窗口?/欢迎弹出框
- 推特Boostrap模式窗口-可拖动不工作
- Twitter Boostrap:模式窗口在重新播放模式窗口后不播放视频
- 在Bootstrap模式窗口中打开远程内容
- jQuery模式窗口在内容为“”时不居中;注入“;在飞行中
- 如何在模式窗口弹出窗口中隐藏滚动条
- fancybox将内容更改为模式窗口
- 将值传递给模式窗口中的 JavaScript 函数
- HTML 瞬态模式窗口
- 具有 UI 引导模式窗口的父$scope子
- 如何将参数传递到 UI 路由器状态的模式窗口
- 如何使用引导程序创建模式窗口
- j查询模式窗口,刷新父问题
- 无法将引导模式窗口作为路由打开
- 如何使模式窗口打开动态内容并更改url
- 在引导模式窗口内路由
- 更新面板和模式窗口