What's the mouse doing upon autocomplete?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • George Hester

    #1

    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
    _______________ _______________ ____
  • Steve van Dongen

    #2
    Re: What's the mouse doing upon autocomplete?

    On Mon, 29 Dec 2003 03:56:57 GMT, "George Hester"
    <hesterloli@hot mail.com> wrote:
    [color=blue]
    >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.[/color]

    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

    Comment

    • George Hester

      #3
      Re: What's the mouse doing upon autocomplete?

      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" <stevevd@hotmai l.com> wrote in message news:61tvuvk2p9 rdtqirehuu6f97d k8iaolqa3@4ax.c om...[color=blue]
      > On Mon, 29 Dec 2003 03:56:57 GMT, "George Hester"
      > <hesterloli@hot mail.com> wrote:
      > [color=green]
      > >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. [/color]
      >
      > 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[/color]

      Comment

      Working...