473,756 Members | 6,250 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Keeping a window on top... tell me its possible

Hi,

I have an application built for the education market in which I open popup
windows containing ASP scripts which when the user clicks the 'Update'
button, the database is updated and the window loads a confirmation message
along with a 'Close this window' link.

All has gone well in the early stages of testing, but I've now come across a
problem where a number (a considerable number) of users seem to be incapable
of clicking in the new window. Instead, they click on the parent window,
thus hiding the child.

They lack the knowledge to look on the Windows taskbar for the hidden
window, preferring to email me telling me that '...nothing happens when I
click on the link...'

My first solution was to use <body onBlur="self.fo cus()"> which does keep
the window on top, but prevents any data being input to form fields in the
child window...

I've looked at the 'Goodman solution' at
http://developer.netscape.com:80/vie...man_modal.html
.. but this child window disappears if you click the parent twice (yes
twice - not necessarily more than twice in rapid succession) in IE5.5
andprevents any input after clicking on the parent in Firefox.

Now, I'm content with an IE-only solution so I turned to showModalDialog ()
but it seems impossible to close this window unless you click on the control
box 'X' - anyway, my requirement seems to be for a 'window on top' not a
'modal dialog'...

Question is ... Is there a way of creating a child window, which will stay
on top, accept input to form fields, load another form and allow the user to
close it from a link?

Please help - I'm not sure whether to reach for a gun - or a bottle ;0)

Regards
Rae MacLeman
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.773 / Virus Database: 520 - Release Date: 10/5/04
Jul 23 '05 #1
4 3756
webdev wrote:
Hi,

I have an application built for the education market in which I open popup
windows containing ASP scripts which when the user clicks the 'Update'
button, the database is updated and the window loads a confirmation message
along with a 'Close this window' link.

All has gone well in the early stages of testing, but I've now come across a
problem where a number (a considerable number) of users seem to be incapable
of clicking in the new window. Instead, they click on the parent window,
thus hiding the child.

They lack the knowledge to look on the Windows taskbar for the hidden
window, preferring to email me telling me that '...nothing happens when I
click on the link...'

My first solution was to use <body onBlur="self.fo cus()"> which does keep
the window on top, but prevents any data being input to form fields in the
child window...

I've looked at the 'Goodman solution' at
http://developer.netscape.com:80/vie...man_modal.html
. but this child window disappears if you click the parent twice (yes
twice - not necessarily more than twice in rapid succession) in IE5.5
andprevents any input after clicking on the parent in Firefox.

Now, I'm content with an IE-only solution so I turned to showModalDialog ()
but it seems impossible to close this window unless you click on the control
box 'X' - anyway, my requirement seems to be for a 'window on top' not a
'modal dialog'...

Question is ... Is there a way of creating a child window, which will stay
on top, accept input to form fields, load another form and allow the user to
close it from a link?

Please help - I'm not sure whether to reach for a gun - or a bottle ;0)

Regards
Rae MacLeman
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.773 / Virus Database: 520 - Release Date: 10/5/04

Use modal dialogs for popups instead:

window.showModa lDialog(...) instead of
window.open(... )

Modal dialogs are pretty much as regular windows, but you can't click on parent window while dialog
is open - it should work for you.

Look here: msdn.microsoft. com/workshop/author/ dhtml/reference/methods/showmodaldialog .asp

WYGL,
Andrey
Jul 23 '05 #2

"Andrey" <le*******@yaho o.com> wrote in message
news:4oW8d.1986 81$D%.170422@at tbi_s51...
(shortened)

Use modal dialogs for popups instead:

window.showModa lDialog(...) instead of
window.open(... )

Modal dialogs are pretty much as regular windows, but you can't click on parent window while dialog is open - it should work for you.

Look here: msdn.microsoft. com/workshop/author/ dhtml/reference/methods/showmodaldialog .asp
WYGL,
Andrey


Andry,

This does work, but is there a way of closing the dialog from a link rather
than expecting an unsophisticated user to click on the control box 'X'?

Rae MacLeman

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.773 / Virus Database: 520 - Release Date: 10/5/04
Jul 23 '05 #3
webdev wrote:
"Andrey" <le*******@yaho o.com> wrote in message
news:4oW8d.1986 81$D%.170422@at tbi_s51...
(shortened)
Use modal dialogs for popups instead:

window.showMo dalDialog(...) instead of
window.open(. ..)

Modal dialogs are pretty much as regular windows, but you can't click on


parent window while dialog
is open - it should work for you.

Look here: msdn.microsoft. com/workshop/author/


dhtml/reference/methods/showmodaldialog .asp
WYGL,
Andrey

Andry,

This does work, but is there a way of closing the dialog from a link rather
than expecting an unsophisticated user to click on the control box 'X'?

Rae MacLeman


Rae,
Maybe i misunderstood you but what is the problem with closing a window?
In your dialog page you place a button:
<input type='button' value='Close Me!' onClick='window .close()'>
It does the trick!

Is that what you need?
If you need something else, please explain and i'll try to help you

WYGL,
Andrey
Jul 23 '05 #4

"Andrey" <le*******@yaho o.com> wrote in message
news:38X8d.1916 99$MQ5.163499@a ttbi_s52...
webdev wrote:
"Andrey" <le*******@yaho o.com> wrote in message
news:4oW8d.1986 81$D%.170422@at tbi_s51...
(shortened)
Use modal dialogs for popups instead:

window.showMo dalDialog(...) instead of
window.open(. ..)

Modal dialogs are pretty much as regular windows, but you can't click on


parent window while dialog
is open - it should work for you.

Look here: msdn.microsoft. com/workshop/author/


dhtml/reference/methods/showmodaldialog .asp
WYGL,
Andrey

Andry,

This does work, but is there a way of closing the dialog from a link rather than expecting an unsophisticated user to click on the control box 'X'?

Rae MacLeman


Rae,
Maybe i misunderstood you but what is the problem with closing a window?
In your dialog page you place a button:
<input type='button' value='Close Me!' onClick='window .close()'>
It does the trick!

Is that what you need?
If you need something else, please explain and i'll try to help you

WYGL,
Andrey


Andry,

My question arose because I'd been using ...

<a href='javascrip t:window.close( );'>Close Me</a>

which doesn't work - yours does! Thank you

Rae
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.773 / Virus Database: 520 - Release Date: 10/5/04
Jul 23 '05 #5

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

Similar topics

8
5681
by: vishal | last post by:
hi i am creating one site and i am not allowed to use client side scripting in site and i have one link in my one page. when user clicks on this link the target page must be opened in another window. is it possible to do it without using javascript,vbscript??? thxs for your help in advance.
4
3145
by: zach | last post by:
Hi My problem is that on some sites when I click on a picture (for example) that is supposed to open in a new window it doesn't. The bottom left of my browser where it tells what is happening just says javascript and has a yellow triangle with an exclamation point in it. I have java enabled on my computer and tried turning my pop-up software off. I also tried with java not enabled but nothing seems to work. The new window never pops...
179
44433
by: SoloCDM | last post by:
How do I keep my entire web page at a fixed width? ********************************************************************* Signed, SoloCDM
8
11097
by: Freek te Water | last post by:
Hi, Hope no-one is offended by my probably noob question... Context: I have a web page design, which always centres in the middle of the screen (using a 100%*100% HTML-table). Now I also use layers, that get visible when something is clicked. All works fine. Problem:
44
4734
by: Carlos Andr?s | last post by:
Hi everybody. I've got a problem. I'd like to avoid opening a new window when you have pressed the shift key and you click in the left button of the mouse. I've tried the next solution, in the body of the page I put the next code: <BODY onkeydown='notOpenNewWindow();'>
3
1377
by: simonc | last post by:
I am writing a program that runs doing a repetitive task for several minutes. When I start it calculating the program's form only stays visible as long as it is the top window on the desktop. As soon as I put another window on top of the form I can't get back to the form. If I minimise everything else on the desktop I still can't seen the content of the form - the window just contains whatever bit of graphic previously occupied that bit...
15
9743
by: Nayan | last post by:
Hi, Can anyone suggest working sample of capturing a window's picture? I tried a few, but couldn't get the image. I don't know why those functions are not getting the image. Note: I want the snapshot of the window even when it's not visible. And, I work in "C#". An example: http://www.developerfusion.co.uk/show/4630/
1
1404
by: agendum97 | last post by:
On Jun 26, 4:53*pm, Gregor Kofler <use...@gregorkofler.atwrote: If possible for your scenario, you could potentially use eval for this. For example: function MyClass(val) { var printIt = function () { window.alert("1:" + val); } this.callPrintIt = function () { printIt(); }
0
9117
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9679
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9676
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9541
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7078
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4955
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3651
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3141
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.