Closing an Embedded Browser

  • Thread starter Anil Gupe/keen inc.
  • Start date
A

Anil Gupe/keen inc.

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="javascript: 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
www.keeninc.net
www.icinema.com
www.wizo.tv.
Pune, India
+91-20/65216198
Milwaukee, WI
+1-414/431-8775
 
K

kimiraikkonen

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="javascript: 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.keeninc.netwww.icinema.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="javascript: self.close()">Close 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
 
A

Anil Gupe/keen inc.

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

--
Anil Gupte
k.e.e.n
www.keeninc.net
www.icinema.com
www.wizo.tv.
Pune, India
+91-20/65216198
Milwaukee, WI
+1-414/431-8775
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="javascript: 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.keeninc.netwww.icinema.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="javascript: self.close()">Close 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Embedded media player 3

Top