Skip to Content
0
Former Member
May 26, 2016 at 06:22 PM

Error while displaying image in SAP UI5

92 Views

Hi Expert,

I am not getting any image after running the below code:-

<!DOCTYPE HTML>

<html>

<head>

<meta http-equi="X-UA-Compatible" content="IE=edge">

<meta charset="utf-8">

<script

id="sap-ui-bootstrap"

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

data-sap-ui-theme="sap_bluecrystal"

data-sap-ui-libs="sap.m"

data-sap-ui-compatVersion="edge"

data-sap-ui-preload="async" >

</script>

<script>

sap.ui.getCore().attachInit(function () {

var oImage = new sap.m.Image({

scr: "https://upload.wikimedia.org/wikipedia/commons/9/9f/GEO_Globe.jpg"

}).placeAt("sample1");

});

</script>

</head>

<body class="sapUiBody" id="sample1">

</body>

</html>

Can anyone help me out