cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jcesarmobile (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CB-12828) InAppBrowser - intercept POST events
Date Thu, 18 May 2017 17:04:04 GMT

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

jcesarmobile closed CB-12828.
-----------------------------
    Resolution: Not A Problem

Closing as not a problem because it looks more like a question than a real issue.

If you are using inAppBrowser you can listen to loadstart event which knows the url starting
to load. But your post should be to a different url than the current one or you won't be able
to notice the difference.



> InAppBrowser - intercept POST events
> ------------------------------------
>
>                 Key: CB-12828
>                 URL: https://issues.apache.org/jira/browse/CB-12828
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: cordova-plugin-inappbrowser
>    Affects Versions: cordova@7.0.0
>            Reporter: Riccardo Gazzea
>             Fix For: Master
>
>
> Hi, 
> I’m using InAppBrowser to display a web application, in which, clicking a button, I
am supposed to download and open a pdf.
> The button once clicked triggers a POST; I am not able to “download the file” using
the plugin though.
> The server response is of type:
> Content-Type application/pdf
> Content-Disposition attachment;filename="guide.pdf"
> Is there any smart way to be able to intercept the download of the file instead of opening
the resulting file in the main webview (which will replace the entire web application)?
> Thank you!



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message