473,386 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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="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
Jun 27 '08 #1
2 1136
On May 30, 11:45 am, "Anil Gupe/keen inc." <anil-l...@icinema.com>
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="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
Jun 27 '08 #2
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
"kimiraikkonen" <ki*************@gmail.comwrote in message
news:a3**********************************@27g2000h sf.googlegroups.com...
On May 30, 11:45 am, "Anil Gupe/keen inc." <anil-l...@icinema.com>
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="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
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Edward Diener | last post by:
I am creating a component and I want one of my properties to be an embedded class with its own properties. When the component designer shows this property I want it to be able to expand this...
3
by: Daniel | last post by:
Is there a way to make a javascript do something when the user closes the browser? I would like it to go another url or something. I do not want this script to run when a user clicks on a link on...
2
by: Derek | last post by:
Hello: I want to capture the event when a browser is closing, to give to the user the posibility of close or no this browser. When the browser is closing, this show a confirm window with two...
4
by: Randy | last post by:
Hi, ok, I found a way to connect to a running instance of an (external) Internet Explorer and access - for example - the html source. That works fine! But now I have running application with...
0
by: Anne | last post by:
hie there, i have a couple of questions that i need help on. the first is regarding the closing of a browser.i have an exit button which on click i would like it to totally close the browser, and...
1
by: Chirag Malvi | last post by:
hello all, I am developing the web application using ASP.net and VS.2003 IDE. here is the situation which i want to implement. 1) User is browsing some webform. I want to trap this event....
3
by: Jason Chu | last post by:
I've written a file uploading part of my application using the IHttpModule. So now, I don't have the memory problem of uploading something big. Problem: I can't find which function I have to...
1
by: karthik juneni | last post by:
Hi all, Iam trying to capture windows closing event (i.e) when the user clicks on the "X" button i want to capture that event and want to update some values in the database.I tried two methods...
1
by: pvogel | last post by:
Hi Folks, I've got an asynchronous pluggable protocol (APP) handler implemented (based on the excellent work here: http://www.codeproject.com/aspnet/AspxProtocol.asp) that works absolutely...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.