473,407 Members | 2,629 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,407 software developers and data experts.

Prevent browser close

I am developing for a kiosk system. IE is loaded on this sytem and we want
to make sure that there is a browser open to our website location at all
times. So when the user closes the browser we want to either stop the close
and send the user back to the default page, or we want to detect to make
sure there isn't anyother browser open and if not open a new one to replace
the one that was closed.

So does anyone have any code samples that would help out on one or more
parts of this?

Thanks in advance!
Velvet

May 18 '07 #1
6 2041
Hello Velvet,

Write the service which enumerate all windows and check that browser with
your site in title is exist and active

But what u gonna do if user plug off network cable?

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

VI am developing for a kiosk system. IE is loaded on this sytem and
Vwe want to make sure that there is a browser open to our website
Vlocation at all times. So when the user closes the browser we want
Vto either stop the close and send the user back to the default page,
Vor we want to detect to make sure there isn't anyother browser open
Vand if not open a new one to replace the one that was closed.
V>
VSo does anyone have any code samples that would help out on one or
Vmore parts of this?
V>
VThanks in advance!
VVelvet
May 18 '07 #2
"Velvet" <MS***********@nospam.nospamwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
So does anyone have any code samples that would help out on one or more
parts of this?
See Michael's response...

How could you prevent someone from popping Task Manager and killing the
task...?

There really is no 100% reliable way of doing this...
--
http://www.markrae.net

May 18 '07 #3
The network cable will not be accessible so I don't see that as an issue.

About the service. I've not written a service application before. Do you
know of any tutorials which would point me in the right direction?

Also, isn't there something that I could do in the window.onclose event that
could prevent the browser from closing in the first place? I haven't found
anything in my searches, but I seem to remember that it was possible.

Thanks!
"Michael Nemtsev" <ne*****@msn.comwrote in message
news:a2***************************@msnews.microsof t.com...
Hello Velvet,

Write the service which enumerate all windows and check that browser with
your site in title is exist and active

But what u gonna do if user plug off network cable?

---
WBR, Michael Nemtsev [.NET/C# MVP]. My blog:
http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

VI am developing for a kiosk system. IE is loaded on this sytem and
Vwe want to make sure that there is a browser open to our website
Vlocation at all times. So when the user closes the browser we want
Vto either stop the close and send the user back to the default page,
Vor we want to detect to make sure there isn't anyother browser open
Vand if not open a new one to replace the one that was closed.
VVSo does anyone have any code samples that would help out on one or
Vmore parts of this?
VVThanks in advance!
VVelvet


May 18 '07 #4
We are locking down all other operations through group policy's.

Keep the idea's coming pelase...
"Mark Rae" <ma**@markNOSPAMrae.netwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
"Velvet" <MS***********@nospam.nospamwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>So does anyone have any code samples that would help out on one or more
parts of this?

See Michael's response...

How could you prevent someone from popping Task Manager and killing the
task...?

There really is no 100% reliable way of doing this...
--
http://www.markrae.net

May 18 '07 #5
Hello Velvet,

Start from here http://pinvoke.net/default.aspx/user32/EnumWindows.html

I'd recommed to unload shell at all (explorer), and apply strick group policies,
so users have no access to any windows applications except your browser.
This is topic for windows newsgroups

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

VThe network cable will not be accessible so I don't see that as an
Vissue.
V>
VAbout the service. I've not written a service application before.
VDo you know of any tutorials which would point me in the right
Vdirection?
V>
VAlso, isn't there something that I could do in the window.onclose
Vevent that could prevent the browser from closing in the first place?
VI haven't found anything in my searches, but I seem to remember that
Vit was possible.
V>
VThanks!
V>
V"Michael Nemtsev" <ne*****@msn.comwrote in message
Vnews:a2***************************@msnews.microso ft.com...
V>
>Hello Velvet,

Write the service which enumerate all windows and check that browser
with your site in title is exist and active

But what u gonna do if user plug off network cable?

---
WBR, Michael Nemtsev [.NET/C# MVP]. My blog:
http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high
and we miss it, but that it is too low and we reach it" (c)
Michelangelo

VI am developing for a kiosk system. IE is loaded on this sytem
and
Vwe want to make sure that there is a browser open to our website
Vlocation at all times. So when the user closes the browser we
want
Vto either stop the close and send the user back to the default
page,
Vor we want to detect to make sure there isn't anyother browser
open
Vand if not open a new one to replace the one that was closed.
VVSo does anyone have any code samples that would help out on one
or
Vmore parts of this?
VVThanks in advance!
VVelvet

May 18 '07 #6
Problem Solved! It turns out that we can disable browesr close with in the
group policies in Windows itself! YAY! No extra last minute coding
required!

Thanks all!
Velvet
"Velvet" <MS***********@nospam.nospamwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>I am developing for a kiosk system. IE is loaded on this sytem and we want
to make sure that there is a browser open to our website location at all
times. So when the user closes the browser we want to either stop the
close and send the user back to the default page, or we want to detect to
make sure there isn't anyother browser open and if not open a new one to
replace the one that was closed.

So does anyone have any code samples that would help out on one or more
parts of this?

Thanks in advance!
Velvet

May 18 '07 #7

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

Similar topics

2
by: Jerry | last post by:
Hi All ! Could somebody help me out on this one: My script needs to execute a time consuming process which might take as long as an hour or so to finish. Usually, the time limit would produce...
11
by: danny | last post by:
Is there a way I can prevent the browser window from being closed? I'd like to make sure the browser window only closes programatically (I want to make sure the user enters data before moving on)....
9
by: Daniel Walzenbach | last post by:
Hi I am faced with the following problem: I have a page (let’s call this page page1.aspx) containing some TextBoxes and a hyperlink which opens another page (let’s call this page page2.aspx)...
6
by: Divya | last post by:
Hi, I have a web page which generates a CSV file based on some user input. When this file is downloaded by the user, the file is being automatically converted to .xls. Any idea how I can prevent...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.