Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-14014

How to get inAppBrowser Close event after redirect another local html page..?

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Critical
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Flags:
      Important

      Description

      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..? }

      });

      });

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Kaushik0704 Lathiya Kaushik
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified