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

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

Lathiya Kaushik created CB-14014:
------------------------------------

             Summary: 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


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