473,806 Members | 2,332 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

question about window.showMode lessDialog()

Hi, all

When I use window.showMode lessDialog() to open a window. And then on the
opened window to open an another window with the same function,
window.showMode lessDialog(). The last opened one is always on the top of the
first opened one. Is there any "work around" to have the first opened one go
to the front? Thanks in advance!

Jack
Jul 23 '05 #1
3 6203
datactrl wrote:
Hi, all

When I use window.showMode lessDialog() to open a window. And then on the
opened window to open an another window with the same function,
window.showMode lessDialog(). The last opened one is always on the top of the
first opened one. Is there any "work around" to have the first opened one go
to the front? Thanks in advance!

Jack


window.showMode lessDialog() returns a window object reference that appears to
respond to the standard window object interface, for example:

var w1 = window.showMode lessDialog('htt p://www.microsoft.c om');
var w2 = window.showMode lessDialog('htt p://www.yahoo.com') ;
w1.focus();

appears to work correctly. So perhaps after you open the 2nd modeless dialog,
call window.focus() on the initial modeless dialog to pull focus back to it.
Untested.

--
Grant Wagner <gw*****@agrico reunited.com>
comp.lang.javas cript FAQ - http://jibbering.com/faq

Jul 23 '05 #2
Thanks, Grant

The case is there are 3 windows. window 1 uses window.showMode lessDialog()
to open window 2 and window 2 uses window.showMode lessDialog() to open
window 3. The window 3 will be on focus after all. Then when I click window
2, window 2 is on focus, but it is always behind window 3. It can't go on
top of window 2 even when it is on focus.

Jack
window.showMode lessDialog() returns a window object reference that appears to respond to the standard window object interface, for example:

var w1 = window.showMode lessDialog('htt p://www.microsoft.c om');
var w2 = window.showMode lessDialog('htt p://www.yahoo.com') ;
w1.focus();

appears to work correctly. So perhaps after you open the 2nd modeless dialog, call window.focus() on the initial modeless dialog to pull focus back to it. Untested.

--
Grant Wagner <gw*****@agrico reunited.com>
comp.lang.javas cript FAQ - http://jibbering.com/faq

Jul 23 '05 #3
datactrl wrote:
Thanks, Grant

The case is there are 3 windows. window 1 uses window.showMode lessDialog()
to open window 2 and window 2 uses window.showMode lessDialog() to open
window 3. The window 3 will be on focus after all. Then when I click window
2, window 2 is on focus, but it is always behind window 3. It can't go on
top of window 2 even when it is on focus.

[snip]

showModalDialog was introduced with IE 4, showModelessDia log with IE 5.
AFAIK, no other browser supports them - so for those users, the above
is not an issue since nothing will happen when you try to execute the
function.

Please consider using some other method to achieve what you are after,
or at least use feature detection and warn users of non-IE UAs.

Cheers, Fred.
Jul 23 '05 #4

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

Similar topics

8
5859
by: Fred Basset | last post by:
I am modifying existing code to add modal functionality to an IE5+ ActiveX Web-App. What I am trying to achieve is simple modal behaviour on popup windows, apart from certain specified ones. I initially attempted to use a direct assignment to the onblur handler of the new window, but for some reason couldn't get it to work, so I've instead used attachEvent. This provides simple modal functionality. The problem that I need help with is...
4
7563
by: Simon Wigzell | last post by:
I have a couple of utility windows - a calculator and a calendar that popup from my main window. I would like them to always stay in front of the parent window until they are shut down with there own close buttons. As it is, when you click back to the parent window, of course it comes in front of the child windows. Can I do this?
6
12076
by: Cortes | last post by:
Hi all, I have this parent window poping up the child window. SOmething like this popupWinA= window.open("child.html","popupWinA"," width=300 , height=150) I want this child popupWinA always stay on top of the parent window no matter where the focus is (so that when you click the parent, the child doesn't *disappear* because if its small size).
1
3052
by: Dustin II. | last post by:
I have a web form that I use to gather information from other windows. Is there a way that when my aspx page loads it stays on top of all the other windows? I don't want it to keep focus though.
5
4884
by: anand basha | last post by:
what is the replacement for window.navigate in mozilla & i was used window.showmodelessdialog in IE5 - in mozilla it is not working *** Sent via Developersdex http://www.developersdex.com ***
1
6848
by: sathyanrockie | last post by:
Plase tell me what is the difference between window.open and window.showmodelessdialog. Can we use window.showmodelessdialog in place of window.open?
0
1187
by: Laurahn | last post by:
Hi: i'm using modal window (showmodelessdialog) on asp. when the object is created i used session variables. After the object is closed the data is remaining on the modal window when is open again, even if i clear all session variables. i call the modal windows as: Response.write("<script>window.showModelessDialog('myPage.aspx','window', 'center:Yes;help:No;status:false;dialogWidth:740px;dialogHeight:395px')</script>")
1
2204
by: Laurahn | last post by:
Hi: i'm using modal window (showmodelessdialog) on asp. when the object is created i used session variables. After the object is closed the data is remaining on the modal window when is open again, even if i clear all session variables. i call the modal windows as: Response.write("<script>window.showModelessDialog('myPage.aspx','window', 'center:Yes;help:No;status:false;dialogWidth:740px;dialogHeight:395px')</script>")
1
2721
by: elizayiu | last post by:
Hi, I need to write a webpage which does the following: - open up a window and pass parameters into it (i.e. need to call showModalDialog() or showModelessDialog()) - contains jscript to support drag and drop objects from itself to the popup window - wait for user response in popup window and return results back to the parent window (i.e. calling showModalDialog() is preferred)
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10618
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10366
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
10371
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,...
1
7649
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
6877
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
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
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
3850
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.