Haz 9 2016
SAP UI5 open dialog, show pop-up html external page iframe
<!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>
SAP UI5 open dialog, show pop-up html external page iframe,
Burhan KARADERE
9 Haziran 2016 @ 11:47