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

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 2457

"Dave" <da*******@hotmail.com> wrote in message news:4e**************************@posting.google.c om...
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 onpropertychange 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
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...
1
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
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...
6
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()...
4
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...
2
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...
11
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...
22
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......
4
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,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.