Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

SAPUI5 Image and Canvas(HTML5) not working in Eclipse IDE

$
0
0

Hi all,

 

I have been trying to develop a simple application with SAPUI5 development toolkit in Eclipse IDE. When I try to add an image in the web page, it doesn't work. I used the following code inside <script>

 

var oImage = new sap.ui.commons.Image();

oImage.setSrc("images\logo.jpg");

oImage.setAlt("alternative image text for image");

oImage.setHeight("50px");

oImage.placeAt("sample1");

 

 

Similarly I'm not able to implement the "canvas" element in HTML5, the code doesn't give any error but it is not displayed in the output. I'm able to get these two features in the output when I run the same code from a notepad editor.

 

What might have gone wrong with these two? It would be great if you could suggest me a solution to this.

 

Thanks & Regards,

Swetha


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>