You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2018/04/05 14:00:00 UTC

[jira] [Closed] (CB-14014) How to get inAppBrowser Close event after redirect another local html page..?

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

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

This is a question, not a bug

> How to get inAppBrowser Close event after redirect another local html page..?
> -----------------------------------------------------------------------------
>
>                 Key: CB-14014
>                 URL: https://issues.apache.org/jira/browse/CB-14014
>             Project: Apache Cordova
>          Issue Type: Task
>          Components: cordova-plugin-inappbrowser
>            Reporter: Lathiya Kaushik
>            Priority: Critical
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> I'm integrating cordova inAppBrowser Plugin in my project, but I'm getting some Issue.
> how to get inAppBrowser close event on my ajax success in my 2nd html page.
> Here is my 1st html page code,
> <input type="button" id="pay" value="PAY"></input>
> <script type="text/javascript">
> $( document ).ready(function() {
> $("#pay").click(function()
> { var ref = cordova.InAppBrowser.open("page2.html", "_blank", "location=yes"); }
> );
> });
> <script>
>  
> Here is my 2nd html page code,
> $( document ).ready(function() {
>           $.ajax({
>                 url: url + "EmailVerified?Email=" + $("#email").val() + "&Amount=" + RechargeValue,
>                 type: "POST",
>                 dataType: 'json',
>                 cache: true,
>                 async: true,
>                 success: function (data)
>                 {
>                     //Here i want to close my inAppBrowser window is it Possible..?
>                 }
>           });    
>      });



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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