473,473 Members | 2,193 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Popup windows question...

Hi all,

I am writing an application which requires using a popup windows to
edit the detail of a record.

The popup windows is created by it's parent which shows the detail of
the record, which also has a button to delete the record.

My question is that, how do I make the popup to stay on top of the
parent all the time (to make sure, the record is not deleted when I am
trying to edit it via the popup...)

I have tried using a loop to keep the popup stay on focus... but since
my popup has a drop down selection box, the loop doesn't allow me to
have enough time to choose the option before the popup request a focus
again...

Can anyone help please

Thx
Jul 23 '05 #1
2 1405
In article <e9**************************@posting.google.com >,
so*******@hotmail.com enlightened us with...
Hi all,

I am writing an application which requires using a popup windows to
edit the detail of a record.

The popup windows is created by it's parent which shows the detail of
the record, which also has a button to delete the record.

My question is that, how do I make the popup to stay on top of the
parent all the time (to make sure, the record is not deleted when I am
trying to edit it via the popup...)
Are you sure this solves the problem?
B/c it doesn't sound right to me.
Double-check your logic here before moving on.

(are you sure it can't be deleted by another user while the current one is
editing it?? do you lock it? why not just fail gracefully if the record isn't
there?)

I have tried using a loop to keep the popup stay on focus... but since
my popup has a drop down selection box, the loop doesn't allow me to
have enough time to choose the option before the popup request a focus
again...

Can anyone help please


For MSIE only, use modal dialog.
If you need it to work in other browsers, I'd recommend not using popups at
all for this, as trying to make a modal dialog work cross-browser can be a
PITA. Use a floating div that gets the content from the server instead.

--
--
~kaeli~
A plateau is a high form of flattery.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2
Kevin Lam wrote:
Hi all,

I am writing an application which requires using a popup windows to
edit the detail of a record.

The popup windows is created by it's parent which shows the detail of
the record, which also has a button to delete the record.

My question is that, how do I make the popup to stay on top of the
parent all the time (to make sure, the record is not deleted when I am trying to edit it via the popup...)

I have tried using a loop to keep the popup stay on focus... but since my popup has a drop down selection box, the loop doesn't allow me to
have enough time to choose the option before the popup request a focus again...

Can anyone help please

Thx


<script type="text/javascript">

var ftimer = null;
var OK2focus = true;

self.onblur = function()
{
ftimer = setTimeout('if(OK2focus)self.focus()', 100);
}

</script>
..........
..........
<select onfocus="OK2focus=false;" onblur="OK2focus=true;self.onblur()">

[untested]

Jul 23 '05 #3

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

Similar topics

13
by: dave yan | last post by:
hi, i have some forms which use javascript for data validation, e.g., checking to make sure all required fields are completed, checking that data falls within valid ranges for certain fields,...
38
by: Shaun McKinnon | last post by:
HI...Here's my problem...I have a popup window that loads when i want it to, but it's not sized properly. I've set the size, but it doesn't seem to work. I've been on 8 different websites to find...
3
by: Steve K | last post by:
After reading Harlan's post about popups some of my questions were answered but.. I was going to use differnet popups on a lot of my pages. These popups contain bios on Cornell faculty. Two days...
12
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank,...
3
by: Dan | last post by:
First, I'm sorry if this question has been asked too many times. I'm new to this news group. The question has to do with the use of popup windows in a web page. I have heard that popup windows...
7
by: E Michael Brandt | last post by:
I have been lurking here for some time, and now would like to ask a question of you clever coders: My JustSo PictureWindow 3 Extension for Dreamweaver has stumbled in the face of the new Opera...
3
by: ypress | last post by:
Hi. I have a page that contains this simple function: <script language="javascript"> function openPop(url, name, w, h) { var features = ""; features += "scrollbars=no,"; features +=...
9
by: Jimmy Junatas | last post by:
When we open a window (using client-side jscript ie. window.open("/Site/Popup.aspx?...",...)) from Page1.aspx, the called page Popup.aspx does not have access to the Session variables present in...
18
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead....
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,...
1
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...
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
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
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.