I can successfully load a local page into a modal preview:
$('.preview-button').click(function () {
$('#dialog').dialog('open');
$('#dialog').load("@Url.Action("Index", "LatestNews", new {area = "Home"})");
});
But I cannot load a remote webpage, say “http://www.example.com/home/php”.
Moreover, when links in the embedded contents of modal page are click, the user leaves the modal altogether.
- How can I embed a remote web page in an mvc (jquery modal)?
- How can I keep the user in the modal when they click the links in the embedded remote page in the modal?
Thank You.
1 Answer