Openui5 data binding örneği

 

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv=”X-UA-Compatible” content=”IE=edge” />
<link rel=”shortcut icon”
type=”image/x-icon”
href=”images/controls/sap.ui.table.Table.gif”>
<script id=”sap-ui-bootstrap”
type=”text/javascript”
data-sap-ui-libs=”sap.ui.commons,sap.ui.table”
data-sap-ui-theme=”sap_belize”
src=”https://sapui5.hana.ondemand.com/resources/sap-ui-core.js”>
</script>
<script type=”text/javascript”>
var oModel = new sap.ui.model.json.JSONModel();
oModel.loadData(“http://karadere.com/blog/services/json_sayfalar.php?token=329893&id=5″,””,false,”POST”);
// oModel.setData(d);
var post_content = oModel.getProperty(“/post_name”);
console.log(post_content);
alert(post_content);
</script>
</head>
<body class=”sapUiBody” role=”application”>
<div id=”content”></div>
<p>
</body>
</html>

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)