简体   繁体   中英

How to embed an application(by specifying url) in iFrame portlet

I am trying to develop iFrame in portlets (aim is to embed an application which should come up, on clicking the portlet), using Eclipse 3.7 IDE. I have started recently and have understood what portlet is. Can anyone please enlighten me on what iframe is and how it can be used to develop/embed(by giving url) an application in this iframe?

Thank you

An iFrame is a HTML frame on your page that allows you to display a page at a different URL within your page.

So if you're using an iframe you can supply it with a URL to point to the application page you want to include on the page.

So it would be something like:

<iframe id=​"someiframeid" src=​"http:​/​/path/to/other/page" height=​"500" name=""></iframe>

You may want to add more properties to your iframe and these can be here .

Is there any more information you need?

<iframe src='your/application/url.php'></iframe>

你能提供更多关于你需要的信息吗?

<iframe id="myIFrame"  src="about:blank" longdesc="url" width="100%" height="100%" frameborder="0" scrolling="auto"></iframe>

我喜欢这些方式,属性longdesc包含页面的url,这些在主页面打开时阻止自动加载,你可以用js来打开IFrame中的url。

I wanted to know how to add iframe(access any website/app) in the portal. Well, I found how to do it. I started and run a liferay project, which landed me on the starting welcome page(after signing in). Then I went to add option(on top right side)/more/ typed 'iframe' in search field.

Thus I am able to add the iframe and I just need to configure it, by giving the url which I wanna visit. This url can be any servers landing page or any url.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM