473,396 Members | 2,109 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,396 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 1610
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) ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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...
0
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,...
0
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...
0
agi2029
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,...

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.