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 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
_______________ _______________ ____
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.
"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
_______________ _______________ ____ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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.
|
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>
|
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
|
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)
|
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),...
| |
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.
|
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).
|
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...
|
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...
|
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...
|
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,...
| |
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...
|
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,...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
| | |