Ajax "deselects" hyperlink under the mouse cursor.
        Posted  
        
            by thealliedhacker
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by thealliedhacker
        
        
        
        Published on 2010-03-14T22:37:49Z
        Indexed on 
            2010/03/14
            22:45 UTC
        
        
        Read the original article
        Hit count: 231
        
AJAX
|JavaScript
I have a page that performs an Ajax request that replaces a div every second. This div also has hyperlinks in it.
If the user tries to click one of the hyperlinks, it will work, but if they move the cursor over the link, wait for a second without moving the cursor, the hyperlink no longer has the "hover" pseudostyle and if they click at the wrong time, the link doesn't work.
Is there a way to update the div without causing this, or to restore the "mouse over" state of the link?
© Stack Overflow or respective owner