SAP UI5 open dialog, show pop-up html external page iframe

Paylaş.

<!DOCTYPE html>

<html><head>

<meta http-equiv=’X-UA-Compatible’ content=’IE=edge’ />

<meta http-equiv=’Content-Type’ content=’text/html;charset=UTF-8’/>

<title>Dialog popup</title>

 

<script id=’sap-ui-bootstrap’ type=’text/javascript’

src=’https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js’

data-sap-ui-theme=’sap_goldreflection’

data-sap-ui-libs=’sap.ui.commons,sap.ui.ux3′>

<script>
//  SAP UI5 open dialog, show pop-up
// ***************************************
function OpenPopup() {

var html = new sap.ui.core.HTML();
html.setContent(“<iframe src=\”http://www.karadere.com\” style=\”height:600px;width:600px;\”></iframe>”);

var SozDialog = new sap.ui.commons.Dialog({modal: true});
SozDialog.setTitle(“Popup title”);
SozDialog.setWidth(“650px”);
SozDialog.setHeight(“650px”);

SozDialog.addContent(html);
SozDialog.addButton(new sap.ui.commons.Button({text: “KAPAT”, press:function(){SozDialog.close();}}));
SozDialog.open();
};

</script>
</head>

<body onload=”OpenPopup();” class=’sapUiBody’>

<div id=’content’></div>

<div id=’images1′></div>

</body>

</html>

VN:F [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
SAP UI5 open dialog, show pop-up html external page iframe, 10.0 out of 10 based on 1 rating