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

What's the mouse doing upon autocomplete?

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
__________________________________
Jul 20 '05 #1
2 1603
On Mon, 29 Dec 2003 03:56:57 GMT, "George Hester"
<he********@hotmail.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
onpropertychange.

onPropertyChange="
if (event.propertyName == 'value')
{
// enable input element
}
"

Regards,
Steve
Jul 20 '05 #2
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*****@hotmail.com> wrote in message news:61********************************@4ax.com...
On Mon, 29 Dec 2003 03:56:57 GMT, "George Hester"
<he********@hotmail.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
onpropertychange.

onPropertyChange="
if (event.propertyName == 'value')
{
// enable input element
}
"

Regards,
Steve

Jul 20 '05 #3

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

Similar topics

4
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...
5
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) }...
40
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...
26
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...
2
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...
2
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...
8
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...
1
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) ...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.