473,397 Members | 1,985 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,397 software developers and data experts.

IE Window Always Opens Minimized

Hi. I have a hyperlink control (lnkViewLogData) which is assigned the
following attribute when the page loads...

Me.lnkViewLogData.Attributes.Add("onClick", _

"javascript:window.open('Input_New_Record_Customer Information.aspx?CustomerID=" & Me.lblCustomerID.Text & "','myWin','');")

As you can see, when this attribute is assigned the hyperlink is formatted
to pop open another window. The problem is that when the window opens, it
briefly displays on the screen (for 1 second) and then minimizes. Therefore
whenever users open this window they must first click the link, then click on
the new window down on their taskbar.

I'm not sure if the new window is actually MINIMIZING or it is just not
becoming the active window, but either way can anyone suggest how I can fix
this so that the new window becomes the active window and properly displays
on the user's screen? Thanks.
Nov 19 '05 #1
4 3743
Hi,

The javascript window.open method allows you to specify a list of
"features", including, "alwaysRaised" and for windows, "fullscreen". Setting
some of these might help. For more info:

http://www.devguru.com/Technologies/.../win_open.html

"MrMike" wrote:
Hi. I have a hyperlink control (lnkViewLogData) which is assigned the
following attribute when the page loads...

Me.lnkViewLogData.Attributes.Add("onClick", _

"javascript:window.open('Input_New_Record_Customer Information.aspx?CustomerID=" & Me.lblCustomerID.Text & "','myWin','');")

As you can see, when this attribute is assigned the hyperlink is formatted
to pop open another window. The problem is that when the window opens, it
briefly displays on the screen (for 1 second) and then minimizes. Therefore
whenever users open this window they must first click the link, then click on
the new window down on their taskbar.

I'm not sure if the new window is actually MINIMIZING or it is just not
becoming the active window, but either way can anyone suggest how I can fix
this so that the new window becomes the active window and properly displays
on the user's screen? Thanks.

Nov 19 '05 #2
Dune...
Thanks for that very informative link. I've updated the syntax as suggested
by the website, adding the alwaysRaised feature, but the window still opens
and then hides behind the parent window. It's strange because as you can see
I've also added the scrollbars feature which works correctly and displays
scrollbars in the window, but the window continues to open minimized dispite
the alwaysRaised feature. Am I missing something here or formatting this
incorrectly? Thanks!

Me.lnkViewLogData.Attributes.Add("onClick",
_"window.open('Input_New_Record_CustomerInformatio n.aspx?CustomerID=" &
Me.lblCustomerID.Text & "','_blank','scrollbars,alwaysRaised');")

"Dune" wrote:
Hi,

The javascript window.open method allows you to specify a list of
"features", including, "alwaysRaised" and for windows, "fullscreen". Setting
some of these might help. For more info:

http://www.devguru.com/Technologies/.../win_open.html

"MrMike" wrote:
Hi. I have a hyperlink control (lnkViewLogData) which is assigned the
following attribute when the page loads...

Me.lnkViewLogData.Attributes.Add("onClick", _

"javascript:window.open('Input_New_Record_Customer Information.aspx?CustomerID=" & Me.lblCustomerID.Text & "','myWin','');")

As you can see, when this attribute is assigned the hyperlink is formatted
to pop open another window. The problem is that when the window opens, it
briefly displays on the screen (for 1 second) and then minimizes. Therefore
whenever users open this window they must first click the link, then click on
the new window down on their taskbar.

I'm not sure if the new window is actually MINIMIZING or it is just not
becoming the active window, but either way can anyone suggest how I can fix
this so that the new window becomes the active window and properly displays
on the user's screen? Thanks.

Nov 19 '05 #3
I tested your code and it seems to work fine for me. The child window
appears on top and focused.

I don't think I changed anything important (just some names), but just
in case, here's my code:

lnkOpenChild.Attributes.Add("onClick",
"window.open('child.aspx?customerID=42','_blank',' scrollbars,alwaysRaised');")

Could there be something on your Input_New_Record_CustomerInformation
page that is causing this? Do you use any startup javascript or
anything?

Nov 19 '05 #4
Phillip Ian,

Yes, in the <Head> tag of my page I have the following...

<SCRIPT language="Javascript">
function clearAttrs()
{
document.all.DataGrid1.style.borderCollapse = "separate";
}
function setAttrs()
{
document.all.DataGrid1.style.borderCollapse = "collapse";
}
</SCRIPT>

Could this be affecting anything? Thanks for your reply too.

"Phillip Ian" wrote:
I tested your code and it seems to work fine for me. The child window
appears on top and focused.

I don't think I changed anything important (just some names), but just
in case, here's my code:

lnkOpenChild.Attributes.Add("onClick",
"window.open('child.aspx?customerID=42','_blank',' scrollbars,alwaysRaised');")

Could there be something on your Input_New_Record_CustomerInformation
page that is causing this? Do you use any startup javascript or
anything?

Nov 19 '05 #5

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

Similar topics

40
by: Brian Jorgenson | last post by:
On my web page, I have a few hyperlinks with target frame of _blank. The hyperlink brings up a second window, but everytime I click on thie hperlink, it keeps bringing up a new window and not...
2
by: jacek | last post by:
hi, I have a form and onsubmit there's a code like this <form onsubmit="w=window.open(); w.blur(); " > the window opens correctly, all the parameters work just fine, but the window doesn't get...
5
by: Nicolae Fieraru | last post by:
Hi All, I use a simple function on a web site, based on this function: function goVisitSite(Site) { NewWindow1 = window.open(Site, "viewwin",...
5
by: VM | last post by:
When I try to open a window (this small window is 198x190 in size) through the MDI menu with: frm_export frmExport = new frm_export(); frmExport.MdiParent = this; frmExport.Show(); it opens...
3
by: buran | last post by:
Dear ASP.NET Programmers, I have a button which opens a pop-up window on top of the main windows when pressed. However, on the pop-up window, I have another button which again opens a pop-up...
2
by: Jawahar | last post by:
I am trying to open a new window in two ways 1 - adding javascript to the onclick attribute of an Image button to open a pdf document in a new window as...
4
by: Blaine | last post by:
Does anyone know how I can hide a form from the TaskManager? I've set the ShowInTaskbar to False, but when using Alt-TAB to switch between applications, it appears as a blank icon. I can set it...
3
by: xplosiveconcepts | last post by:
Hello all, I have a very simple PHP script that is reading a plain-text CSV file and parses it out into into a HTML table to display the data. No biggie. What I want to do is while keeping...
16
by: CreativeMind | last post by:
hi, i have a page calendar.aspx which returns selected date i.e window.returnValue=selectedDate; window.close(); it works fine with IE but not for Firefox. i tried...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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
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.