I already looked at showModalDialog; Opens a New Window in IE thread but that solution didn't work for me.
I have an angularjs file and I am using showModalDialog to open an external app's html page in a modal like below
var cUrl2 = "http://localhost/cc/CollectionLog.do?customerNbr=" + collectionItem.borrowerId + "&dealNbr=" +
collectionItem.loanId + "&coll=log&requestBean.moduleStatus=newcsotitleLoan&fromCAS=yes";
window.showModalDialog(cUrl2, window, "title:" + windowName + ";dialogWidth:" + winWidth + ";dialogHeight:" +
winHeight + ";center:yes");
I have already tried putting
<base target="_self" />
but it still spawns another window after opening the dialog. How can I fix this. Is there a better way to open a modal window with html provided by another app(Does it matter?). Is there anything else specific in that external app's html that I should look for and fix?
var winHeight = $(window).height() - 100;
var winWidth = $(window).width() - 200;
var windowOptions = 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=' + winWidth +
',height=' + winHeight + ',left=100,top=100';
cUrl = xxxx.html
window.open(cUrl, "win", windowOptions);
I used window.open instead and it worked. Perfect alternative for my issue.