On Thursday, August 30, 2007 8:46 AM Xinhao Zheng said: > i write a hover event for div,and in the handler use ajax to request > data.but it give me a problem: > it do the same ajax request many times(the number is the times i hover > the div) when the first ajax didn't finished.
I don't have an answer to your specific question but maybe you should consider changing the event trigger from hover to click? Alternatively you might be able to utilize the BlockUI (http://www.malsup.com/jquery/block/) plugin to prevent interaction (clicks, hovers, etc.) with your page (or just that element) until the first request has been completed. Regards, Chris.