By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,144 Members | 1,267 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,144 IT Pros & Developers. It's quick & easy.

IE Window Always Opens Minimized

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.