This question is specific to Microsoft Internet Explorer 5 +.
I have an input box that gets the focus when the page loads. Using a suggestion earlier here I have re-written the code better. At least I think so.
Anyway when the user clicks in the box (onmousedown) if they have visited the site in the past a drop down will appear showing previously entered information. If the drop down is longer then the box is wide then it seems onmouseout fires when the user picks an entry that lies outside of the Inbox. That's OK. If the user selects an entry in the dropdown then the information they selected appears in the Input box with the cursor at the end of the added information.
Now what state is the mouse in? There is no onclick; there really is no onmouseover; hence there is no onmouseout anymore. In fact what is the disposition of the mouse at this point? onmousemove is no longer applicable for the mouse doesn't need to be anywhere near the Inbox anymore. The reason I ask is because I need to enable another box once information is either typed in the first inbox or information is entered as I described above. And I'm having trouble determing what event is fired after info is put in as I described above. Thanks.
--
George Hester
_______________ _______________ ____ 2 1624
On Mon, 29 Dec 2003 03:56:57 GMT, "George Hester"
<he********@hot mail.com> wrote: This question is specific to Microsoft Internet Explorer 5 +.
I have an input box that gets the focus when the page loads. Using a suggestion earlier here I have re-written the code better. At least I think so.
Anyway when the user clicks in the box (onmousedown) if they have visited the site in the past a drop down will appear showing previously entered information. If the drop down is longer then the box is wide then it seems onmouseout fires when the user picks an entry that lies outside of the Inbox. That's OK. If the user selects an entry in the dropdown then the information they selected appears in the Input box with the cursor at the end of the added information.
Now what state is the mouse in? There is no onclick; there really is no onmouseover; hence there is no onmouseout anymore. In fact what is the disposition of the mouse at this point? onmousemove is no longer applicable for the mouse doesn't need to be anywhere near the Inbox anymore. The reason I ask is because I need to enable another box once information is either typed in the first inbox or information is entered as I described above. And I'm having trouble determing what event is fired after info is put in as I described above. Thanks.
You should be using onchange to enable the other input element instead
of trying to hack things up with mouse events. If for some reason
onchange is not fired in this scenario, first, I would consider it a
bug because I expect it to be and, second, I'd workaround it by using
onpropertychang e.
onPropertyChang e="
if (event.property Name == 'value')
{
// enable input element
}
"
Regards,
Steve
Hi Steve:
Well your first suggestion is how I did it. But I'll see if I can do it another way as you suggest. In the meantime it's working.
--
George Hester
_______________ _______________ ____
"Steve van Dongen" <st*****@hotmai l.com> wrote in message news:61******** *************** *********@4ax.c om... On Mon, 29 Dec 2003 03:56:57 GMT, "George Hester" <he********@hot mail.com> wrote: This question is specific to Microsoft Internet Explorer 5 +.
I have an input box that gets the focus when the page loads. Using a suggestion earlier here I have re-written the code better. At least I think so.
Anyway when the user clicks in the box (onmousedown) if they have visited the site in the past a drop down will appear showing previously entered information. If the drop down is longer then the box is wide then it seems onmouseout fires when the user picks an entry that lies outside of the Inbox. That's OK. If the user selects an entry in the dropdown then the information they selected appears in the Input box with the cursor at the end of the added information.
Now what state is the mouse in? There is no onclick; there really is no onmouseover; hence there is no onmouseout anymore. In fact what is the disposition of the mouse at this point? onmousemove is no longer applicable for the mouse doesn't need to be anywhere near the Inbox anymore. The reason I ask is because I need to enable another box once information is either typed in the first inbox or information is entered as I described above. And I'm having trouble determing what event is fired after info is put in as I described above. Thanks. You should be using onchange to enable the other input element instead of trying to hack things up with mouse events. If for some reason onchange is not fired in this scenario, first, I would consider it a bug because I expect it to be and, second, I'd workaround it by using onpropertychang e. onPropertyChang e=" if (event.property Name == 'value') { // enable input element } " Regards, Steve This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: bc |
last post by:
Hi,
Is it possible to detect if the IE autocomplete function in a current
context such as a textbox is activated (ie. dropdown with previously
entered info is visible)?
Problem:
I use a script as a basis for binding <enter> in textbox to a button,
BUT <enter> in the dropdown autocomplete generated by IE also triggers
this event.
The script is available below (in .NET context but the idea should
|
by: gsb |
last post by:
I track the mouse location like this code:
function mousePos(e) {
var p = new Object();
if(e) { p.x = e.pageX; p.y = e.pageY; }
else { p.x = event.x; p.y = event.y; }
... (show)
}
document.onmousemove=mousePos;
Seems to do fine on many browsers.
|
by: Alex |
last post by:
Hello,
does anybody know how to turn off the autocomplete feature for a certain
text field?
I am aware of the "autocomplete" attribute, but I have seen other
implementions achieving it without any such attribute and am wondering
whether there is another way to do it .... like via CSS or a naming
convention or .......
|
by: Lasse Edsvik |
last post by:
Hello
I'm trying to build a simple COM+ app in vs.net using C# and i cant register
it in component manager.....
what more is needed than this:
using System;
using System.EnterpriseServices;
|
by: KarenP |
last post by:
In my Windows Forms application, while executing a process that takes some
time, I am changing the cursor to the hourglass by setting Cursor.Current =
Cursors.WaitCursor.
This is working just fine, except that any mouse events generated during
this wait period (such as clicking on a button, etc.), get processed once the
processing is complete. For example, while waiting for my task to complete,
I click on a button (even though the...
| |
by: Mrinal Kamboj |
last post by:
Hi ,
Need to get some basic info regarding AutoComplete Attribute in COM+ .
I am having a class with TransactionOption set to Required , now for
this class , can i mark all the methods with AutoComplete attribute ,
irrespective of the fact , whether i do implement Try .. Catch block or
not , as some of the methods are just meant for intermediary calculation
and are private , or i just need to mark one method that's public as...
|
by: Narf the Mouse |
last post by:
I'm currently working on a roguelike as an excercise in learning c++.
Anyway, I've set up a script parser to check a text file to find out
how many races there are, then dynamically alocate an array 'RaceClass
* RaceList = new RaceClass;'
Now, upon array creation, each member of that array also gets a
dynamically created list of twenty parent class body parts:
' BodyClass * BodyPart;
RaceClass () {
BodyPart = new BodyClass;
};'
|
by: rbg.net |
last post by:
I know that there is a autocomplete property for the HTML "INPUT
type=text" control which if set to OFF, disables autocomplete of the
input textbox (doesn't remember previously entered values)
However there is no such corresponding property for the TEXTBOX ASP.NET
Webcontrol in ASP.NET 1.1.
I know that there is a AutoComplete Property in the TEXTBOX ASP.NET
WebControl in ASP.NET 2.0.
Thus I can use AutoComplete.Disabled property in...
|
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: 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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |