Opening modal into a new window
Hello,
Im trying to open a modal into a new window, but taint having too much success ...It's opening instead into the parent frame. Anyone see anything.
<div id='pdfdiv' style='display:none'><a target="_blank"><iframe id="pdfimg" width="100%" height="100%"></iframe></a></div>
It's seems to be ignoring my target attribute.
function openpdf(doc) {
var url = '/my/pdf/' + doc;
$('#pdfimg').attr('src', url);
$('#pdfdiv').dialog('destroy');
$('#pdfdiv').dialog({
autoOpen:true,
title: doc,
modal:true,
width:800,
height:550,
position:'center',
draggable:true,
resizeable:true,
buttons: {
Close: function() {
$( this ).dialog( "close" );
}
}
});
}