By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,384 Members | 1,829 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,384 IT Pros & Developers. It's quick & easy.

What's the mouse doing upon autocomplete?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.