Script Callback in ASP.Net 2.0 events to handle

Discussion in 'ASP .Net' started by =?Utf-8?B?UGl0Y2Fpcm5pYQ==?=, May 25, 2005.

  1. I have a page that simply displays a list of links as anchors<a>. The links
    are generated from the database in a loop and written out to a table cell
    <td> inner html property. The anchors each have an onmouseover javascript
    that reads a short text description of the link, and writes it to a div that
    was hidden. It also moves the div using absolute positining to be slightly
    offset from the locus of the mouse click. The anchors each have an
    onmouseout javascript that should rehide the div. Everything works fine
    except for two problems.

    1. If the user swipes the mouse quickly over the list of links it usually
    fails to fire the last onmouseout event so the div is not hidden and instead,
    is dragged around the window with the mouse until it runs over another link.

    2. Whenever the callback returns the entire browser contents have a
    pronounced flickerthat is somwhat annoying.

    I am primarily concerned with the first problem. I want the div to remain
    as long as the mouse is hovering on the link but it absolutely has to go away
    when its not over one of the hyperlinks. IMHO if the mouse went over the the
    link and the mouseover was fired as evidenced by the appearance of the div
    contents, and the mouse no longer is over the link, then onmouseout should
    have fired, and it usually does. But scroll across 5 links in a hurry it
    should be five pairs of events fired, right?

    There is a similar and real cool out of band callback thing going on at
    netflix which you can see here if you rollover the links to the movies:
    http://www.netflix.com/BrowseSelection

    Thanks for any help guys.
    =?Utf-8?B?UGl0Y2Fpcm5pYQ==?=, May 25, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Thomas Korsgaard

    events, messages og callback

    Thomas Korsgaard, Jan 12, 2005, in forum: C++
    Replies:
    1
    Views:
    371
    Thomas Matthews
    Jan 12, 2005
  2. Andrea Williams

    Adding client-script to handle client events

    Andrea Williams, Apr 12, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    121
    Andrea Williams
    Apr 12, 2004
  3. Chris

    Events Events Events Please Help

    Chris, Aug 30, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    340
    Chris
    Aug 30, 2005
  4. Markus Ernst

    Handle events from central script

    Markus Ernst, Jun 23, 2005, in forum: Javascript
    Replies:
    6
    Views:
    101
    Markus Ernst
    Jun 27, 2005
  5. Replies:
    1
    Views:
    150
    Peter Michaux
    Apr 27, 2007
Loading...

Share This Page