javascript - How to open a webview inside a frame in Ionic? - Stack Overflow

What I need is to load HTML code inside a frame in a page in an Ionic app, without opening a new window

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
Add a ment  | 

1 Answer 1

Reset to default 6

You 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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745204468a4616521.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信