You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vaibhav Parab (JIRA)" <ji...@apache.org> on 2016/10/20 07:08:59 UTC

[jira] [Updated] (CB-12040) insertCss API is not working in ionic-2 typescript

     [ https://issues.apache.org/jira/browse/CB-12040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vaibhav Parab updated CB-12040:
-------------------------------
    Description: 
I'm using `cordova-plugin-inappbrowser` in `IONIC-2` framework.
When I install this plugin through CLI, the `inappbrowser.d.ts` file is generated in node_modules.

I imported the `InAppBrowser` from node_modules and used in my typescript scripts where I want to open InAppBrowser.

InAppBrowser is opened properly. After that I added `executeScript` and `insertCss` API's using InAppBrowser's instance.

like `let browser = new InAppBrowser('http://google.com', '_blank', 'location=yes');`

`browser.insertCss(...... here is my css code ....)`

but this `insertCss` is not working.

How can I make this work?

Any help is appreciated.
Thanks in advance.

  was:
I'm using `cordova-plugin-inappbrowser` in `IONIC-2` framework.
When I install this plugin through CLI, the `inappbrowser.d.ts` file is generated in node_modules.

I imported the `InAppBrowser` from node_modules and used in my typescript scripts where I want to open InAppBrowser.

InAppBrowser is opened properly. After that I added `executeScript` and `insertCss` API's using InAppBrowser's instance.

like `let browser = new InAppBrowser('http://google.com', '_blank', 'location=yes');`

`browser.insertCss(...... here is my css code ....)`

but this `insertCss` is not working.

Any help is appreciated.
Thanks in advance.


> insertCss API is not working in ionic-2 typescript
> --------------------------------------------------
>
>                 Key: CB-12040
>                 URL: https://issues.apache.org/jira/browse/CB-12040
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin InAppBrowser
>         Environment: Ubuntu 14.04, Ionic-2 CLI 2.1.0, Ionic-2 framework 2.0.0-rc.0
>            Reporter: Vaibhav Parab
>
> I'm using `cordova-plugin-inappbrowser` in `IONIC-2` framework.
> When I install this plugin through CLI, the `inappbrowser.d.ts` file is generated in node_modules.
> I imported the `InAppBrowser` from node_modules and used in my typescript scripts where I want to open InAppBrowser.
> InAppBrowser is opened properly. After that I added `executeScript` and `insertCss` API's using InAppBrowser's instance.
> like `let browser = new InAppBrowser('http://google.com', '_blank', 'location=yes');`
> `browser.insertCss(...... here is my css code ....)`
> but this `insertCss` is not working.
> How can I make this work?
> Any help is appreciated.
> Thanks in advance.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org