cancel
Showing results for 
Search instead for 
Did you mean: 

embed url

juancarlosorta
Participant
0 Kudos

Hi all,

is there any sapui5 control to embed a URL?. If not , what would be better? iframe / object / embed / load ( ajax )

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

there is a sap.ui.core.HTML control you can do something like

oHTML = new sap.ui.core.HTML({

});

//Now embed the iFrame
var iframeID = this.sId + "iFrame";

oHTML.setContent("<iframe id='" + iframeID + "' style='width:100%;height:100%;z-index:-1' width='100%' height='100%'></iframe>");

Answers (3)

Answers (3)

juancarlosorta
Participant
0 Kudos

Thank you all. The iframe/embed works fine but the problem is that if I click on any item in the embedded page, it goes out of the application. I want that link opens in the iframe, so do not leave the aplication.¿Is this possible ?. thanks

Qualiture
Active Contributor
0 Kudos

That really depends on how the links are set up in the embedded html page (window.open, <a href taget="_blank"> etc)

Former Member
0 Kudos

Hi,

There is a control sap.m.URLHelper.

You can refer the link: SAPUI5 Explored

abin_babu2
Explorer
0 Kudos
Hi Juan,
u can use iframes