Twitter Bootstrap open remote URL programmatically
Posted
by
joh
on Stack Overflow
See other posts from Stack Overflow
or by joh
Published on 2012-10-08T03:22:23Z
Indexed on
2012/10/08
3:37 UTC
Read the original article
Hit count: 151
<div class="modal hide fade" id="modal_window">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Modal header</h3>
</div>
<div class="modal-body">
<p>One fine body</p>
</div>
<div class="modal-footer">
<a href="#" class="btn">Close</a>
<a href="#" class="btn btn-primary">Save changes</a>
</div>
</div>
This is my html code,
i want to load a remote content into it, let say yahoo.com
I tried
$('#modal_window').attr('data-remote', 'http://www.yahoo.com').modal({show:true, remote:true});
It shows the normal modal content instead of yahoo loaded into modal. How do i make it to load yahoo.com into the modal window?
Thanks
© Stack Overflow or respective owner