473,799 Members | 3,001 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

In IE, forcing focus on window makes dropdown selects inoperable

We are developing a web page that shows large graphics. To provide
more screen space for the graphics, we allow the user to popup a
window that places itself over the top part of the browser. This popup
contains a control panel that tells the main window what to display.

Because we don't want to require that the user continually ALT-TAB to
go between the main window and the popup (all user controls are on the
popup) in the control panel popup, we have the following:

in the function called by onLoad in the popup, the following line is
executed:

window.onblur= keepFocus;

later in the .js file we have:

function keepFocus() {
self.focus();
}

The problem is that when the user tries to use a dropdown select
control the list drops down and immediately rolls back up, making it
inoperable.

This doesn't happen in the Netscape/Mozilla family or browsers. Nor
does IE report an error.

Any ideas would be appreciated.

Dave
Jul 23 '05 #1
3 2486

"Dave" <da*******@hotm ail.com> wrote in message news:4e******** *************** ***@posting.goo gle.com...
We are developing a web page that shows large graphics. To provide
more screen space for the graphics, we allow the user to popup a
window that places itself over the top part of the browser. This popup
contains a control panel that tells the main window what to display.

Because we don't want to require that the user continually ALT-TAB to
go between the main window and the popup (all user controls are on the
popup) in the control panel popup, we have the following:

in the function called by onLoad in the popup, the following line is
executed:

window.onblur= keepFocus;

later in the .js file we have:

function keepFocus() {
self.focus();
}

The problem is that when the user tries to use a dropdown select
control the list drops down and immediately rolls back up, making it
inoperable.

This doesn't happen in the Netscape/Mozilla family or browsers. Nor
does IE report an error.

Any ideas would be appreciated.

Dave


Hi Dave. I ran into just this very issue before. It looks as though the background of a select box is in fact another html page. You have no control over that like for example make the background a different color than white. So if you lose focus to the document containing the control then the Select control loses focus and when the document regains focus the Select box goes back to its starting element. The use of the select control changes focus of the page. It is actually onpropertychang e which gets fired. The following article may be helpful:

http://support.microsoft.com/default...b;en-us;314279

--
George Hester
_______________ _______________ ____
Jul 23 '05 #2
rf
George Hester wrote:
looks as though the background of a select box is in fact another html

page.

A select box is not another HTML page, it is a windows common control,
namely a combo box.
--
Cheers
Richard.
Jul 23 '05 #3
"rf" <rf@.invalid> wrote in message news:LM******** *********@news-server.bigpond. net.au...
George Hester wrote:
looks as though the background of a select box is in fact another html

page.

A select box is not another HTML page, it is a windows common control,
namely a combo box.


--
Cheers
Richard.


Richard did I say it was an html page? Did I say that? Well lets look this is what I said, "It looks as though the background of a select box is in fact another html page." I did not say it WAS an html page. I said it "looks as though." I know it is not another HTML page. Many people have asked how to change the background of a <SELECT because it "looks like one" and looks as though we should be able to do it. But we cannot. For the very reason you stated.

cheers

George Hester
_______________ _______________ ____
Jul 23 '05 #4

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

Similar topics

0
969
by: Satish | last post by:
Hi, In ASP.NET how can a new window be rendered inoperable programmatically such that it allows only one window to modify the recordset during a session. I have an issue similar to one mentioned in Microsoft Knowledge Base Article - 165884.
1
1766
by: Newbie | last post by:
Hello everyone~ I got some problem on my pop-up window ----------------------------------------- my pop-up window's code: <html> <body onblur=self.focus();> <input length=10> </body>
2
5053
by: starbuck | last post by:
Hi In asp.net/vb.net is there a trigger for a dropdown list when focus moves to next control. I want other fields to be filled after a user selects a account reference and tabs to the next field Thanks in advance
6
3066
by: G Dean Blake | last post by:
in my aspx app I am writing a stream that works fine but it replaces what is in the client browser window. The code is as follows: .. .. HttpContext.Current.Response.ClearHeaders() HttpContext.Current.Response.ClearContent() HttpContext.Current.Response.ContentType = "application/pdf" Dim myBuffer(MyStream.Length) As Byte MyStream.Read(myBuffer, 0, CType(MyStream.Length, Integer)) HttpContext.Current.Response.BinaryWrite(myBuffer)
4
3137
by: PK9 | last post by:
I have a button at the top of my page that I have an onClick event handler for which makes some new controls (at the bottom of my page) visible. When the user clicks the button I make the new controls visible in the onclick event handler, but I do not know how to bring the focus to the bottom section of the page. So basically, when the user clicks the button, everything works correctly in the onclick (all controls are made visible),...
2
1973
by: jason | last post by:
Hello and Good Day. REALLY LOST. Running ASP.NET 1.1 Becuase I think I'm using my own controls smartnavigation does not appear to work for me. Stardard issue: I've got a datagrid thats displaying pages and pages of rows. When I edit some row below pages 1 the post refreshes back to page one, requiring me to page down to do the input.
11
7347
by: Alex.Svetos | last post by:
Hello, I'm trying to get a popup to keep focus when it is re-clicked. The script below is supposed to produce this exact behaviour, however it doesn't work, at least on firefox 1.0.7 and moz 1.7.12 (linux kubuntu). It does work with konqueror. It seems to work with firefox on windows but not with IE (not completly sure though).
22
6771
by: alejandro | last post by:
Hey everyone, I'm currently working on a php project that started about 3 years ago (meaning, it's already quite large.). It uses quite a lot of pupups that seem to work great in all browsers... or used to until IE 7 came along. The problem is, if I have a link that generates a popup but also relocates the page where the link was clicked, the main page will come on top of the popup when it starts loading (this does not occur in any other...
4
2226
by: Spizzat2 | last post by:
I'm trying to figure out a workaround to a minor annoyance that I'm coming up with while coding a site. I've got some keyboard shortcuts set up for the site via javascript, and when I press escape, it's set to hide several divs on the page, and remove focus from a link. Unfortunately, I don't know which link will have focus, so I can't just blur a particular element (that I'm aware of) since I won't know which element it is. I got it...
0
9688
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
9546
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
10491
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...
1
10247
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
10031
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
7571
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
6809
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
5593
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4146
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

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.