Closing an Embedded Browser

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anil Gupe/keen inc.

    Closing an Embedded Browser

    I have an embedded browser in which the user does some stuff (PayPal payment
    actually). When done, I redirect to a page that contains the following
    JavaScript

    <tr vAlign="top">
    <td>&nbsp;</td>
    <td<a href="javascrip t: self.close ()">Close this Window</a></td>
    <td>&nbsp;</td>
    </tr>

    When someone clicks the link, it closes my entire application! That is, it
    closes the Windows Forms Application in which this WebBrowser control is
    embedded. Is there a better way to do this so my application does not exit
    as well?

    Thanx in advance,
    --
    Anil Gupte
    k.e.e.n
    Innovate with UsLeading the Way in Advanced Technology Solutions Discover state-of-the-art services in logistics, databases, and AI designed for evolving


    www.wizo.tv.
    Pune, India
    +91-20/65216198
    Milwaukee, WI
    +1-414/431-8775


  • kimiraikkonen

    #2
    Re: Closing an Embedded Browser

    On May 30, 11:45 am, "Anil Gupe/keen inc." <anil-l...@icinema.co m>
    wrote:
    I have an embedded browser in which the user does some stuff (PayPal payment
    actually). When done, I redirect to a page that contains the following
    JavaScript
    >
    <tr vAlign="top">
    <td>&nbsp;</td>
    <td<a href="javascrip t: self.close ()">Close this Window</a></td>
    <td>&nbsp;</td>
    </tr>
    >
    When someone clicks the link, it closes my entire application! That is, it
    closes the Windows Forms Application in which this WebBrowser control is
    embedded. Is there a better way to do this so my application does not exit
    as well?
    >
    Thanx in advance,
    --
    Anil Gupte
    k.e.e.nwww.keen inc.netwww.icin ema.comwww.wizo .tv.
    Pune, India
    +91-20/65216198
    Milwaukee, WI
    +1-414/431-8775
    Anil,
    I tried to put the line in a plain html file:
    <a href="javascrip t: self.close()">C lose this Window</a>

    And called this page from a webbrowser control which is embedded in a
    winform, but after "close" confirmation it doesn't close the
    application, it HANGS the application, the form's display is distorted
    like a not responding application.

    Thanks,

    Onur Güzel

    Comment

    • Anil Gupe/keen inc.

      #3
      Re: Closing an Embedded Browser

      That is interesting - I don't get a hang and I cannot duplicate that either.

      --
      Anil Gupte
      k.e.e.n
      Innovate with UsLeading the Way in Advanced Technology Solutions Discover state-of-the-art services in logistics, databases, and AI designed for evolving


      www.wizo.tv.
      Pune, India
      +91-20/65216198
      Milwaukee, WI
      +1-414/431-8775
      "kimiraikko nen" <kimiraikkonen8 5@gmail.comwrot e in message
      news:a35f1303-eaaf-4086-86d5-0cc901adc0d3@27 g2000hsf.google groups.com...
      On May 30, 11:45 am, "Anil Gupe/keen inc." <anil-l...@icinema.co m>
      wrote:
      I have an embedded browser in which the user does some stuff (PayPal
      payment
      actually). When done, I redirect to a page that contains the following
      JavaScript
      >
      <tr vAlign="top">
      <td>&nbsp;</td>
      <td<a href="javascrip t: self.close ()">Close this Window</a></td>
      <td>&nbsp;</td>
      </tr>
      >
      When someone clicks the link, it closes my entire application! That is,
      it
      closes the Windows Forms Application in which this WebBrowser control is
      embedded. Is there a better way to do this so my application does not
      exit
      as well?
      >
      Thanx in advance,
      --
      Anil Gupte
      k.e.e.nwww.keen inc.netwww.icin ema.comwww.wizo .tv.
      Pune, India
      +91-20/65216198
      Milwaukee, WI
      +1-414/431-8775
      Anil,
      I tried to put the line in a plain html file:
      <a href="javascrip t: self.close()">C lose this Window</a>

      And called this page from a webbrowser control which is embedded in a
      winform, but after "close" confirmation it doesn't close the
      application, it HANGS the application, the form's display is distorted
      like a not responding application.

      Thanks,

      Onur Güzel


      Comment

      Working...