Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Unable to use InApp browser options

$
0
0

Hi i am a newbie to the ionic frame i am learning ionic by my self and while practising i got a problem with the InApp Browser
Below is my code
Index.html code :

<ion-header-bar class="bar-stable">

    <h1 class="title">InAppBrowser</h1>
</ion-header-bar>
<ion-content ng-controller="ExampleController" padding="true">
    <button class="button button-full button-assertive" ng-click="openInExternalBrowser()">
        Open In External Browser
    </button>
    <button class="button button-full button-assertive" ng-click="openInAppBrowser()">
        Open In App Browser
    </button>
     <button class="button button-full button-assertive" ng-click="openCordovaWebView()">
        Open In Cordova Webview
    </button>

</ion-content>

Code in App.js :

angular.module('starter', ['ionic'])

.controller("ExampleController", function ($scope) {

$scope.openInExternalBrowser = function()
{
// Open in external browser
window.open('http://192.158.0.35/new/', '_system');
};

$scope.openInAppBrowser = function()
{

// Open in app browser
window.open('http://192.158.0.35/new', '_blank', '');
};

$scope.openCordovaWebView = function()
{
// Open cordova webview if the url is in the whitelist otherwise opens in app browser
window.open('http://192.158.0.35/new', '_self', 'location=no');
};

});

Above is my code here are the problems i am facing

  1. Unable to add Zoom controls already tried

window.open('http://192.158.0.35/new', '_self', 'location=no,zoom=yes');

  1. The link im trying to call is site based on .net and ajax based site is opening but in that **File Opening Dialouge ** not opening

  2. How to insert header and footer for InApp Browser along with the and i want add exit button in the footer

Please Post some examples or Please modify above and let me Know


Viewing all articles
Browse latest Browse all 228595

Trending Articles



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