admin管理员组文章数量:1415120
What I need is to load HTML code inside a frame in a page in an Ionic app, without opening a new window or covering the rest of the page.
The idea is to have a frame that opens a web page without covering or disrupting the rest of the page like the header, buttons, etc.
Basically, what I want to do is the equivalent to an Android WebView in an Ionic framework app.
Is this possible?
There is no much code, is a simple "message details" page for a messaging app, is just that the messages have to be displayed as a web page.
<ion-view view-title="Detalles de mensaje" class="discover-page">
<ion-nav-buttons side="right">
<button class="button button-icon icon ion-navicon-round" ng-click="openPopover($event)">
</button>
</ion-nav-buttons>
<ion-nav-buttons side="left">
<button class="button button-icon icon ion-ios7-arrow-back" ng-click="goBack()">
</button>
</ion-nav-buttons>
<ion-content scroll="false">
</ion-content>
</ion-view>
I need to show the header with the top buttons and the webview below them.
What I need is to load HTML code inside a frame in a page in an Ionic app, without opening a new window or covering the rest of the page.
The idea is to have a frame that opens a web page without covering or disrupting the rest of the page like the header, buttons, etc.
Basically, what I want to do is the equivalent to an Android WebView in an Ionic framework app.
Is this possible?
There is no much code, is a simple "message details" page for a messaging app, is just that the messages have to be displayed as a web page.
<ion-view view-title="Detalles de mensaje" class="discover-page">
<ion-nav-buttons side="right">
<button class="button button-icon icon ion-navicon-round" ng-click="openPopover($event)">
</button>
</ion-nav-buttons>
<ion-nav-buttons side="left">
<button class="button button-icon icon ion-ios7-arrow-back" ng-click="goBack()">
</button>
</ion-nav-buttons>
<ion-content scroll="false">
</ion-content>
</ion-view>
I need to show the header with the top buttons and the webview below them.
Share Improve this question edited Apr 20, 2015 at 19:03 David Prieto asked Apr 18, 2015 at 22:38 David PrietoDavid Prieto 2,2996 gold badges34 silver badges51 bronze badges 2- Did you try Angular UI routing? Please post some code. – EugenSunic Commented Apr 18, 2015 at 22:43
- I've been reading about it but no luck just yet. – David Prieto Commented Apr 20, 2015 at 20:47
1 Answer
Reset to default 6You just want to show the any web view in your app with your header. Yes it is possible with iframe html tag. But it is possible only for http web views not for https web views like paypal.
本文标签: javascriptHow to open a webview inside a frame in IonicStack Overflow
版权声明:本文标题:javascript - How to open a webview inside a frame in Ionic? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745204467a2647567.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论