asp.net listbox onchange javascript event ajax calls out of order -
i have listbox. simple master-detail kind of page. handling onchange this:
onchange="lbchange(this.options[this.selectedindex].value);"
my lbchange() javascript function makes jquery ajax call fill fields on page. selected value pk , json results page's webmethod. working great.
problem: if scroll in listbox arrow keys top entry in list box. ajax calls or events seem happen out of order. not fifo. lets if have bill clinton selected , george washington @ top of list box. if hold down arrow key , arrow way top select george washington, see george washington flash in details. yet abe lincolns details displayed george washington selected. newer javascript events (onchange) interrupting older ones , older ones finish afterword.
guess forgot in ajax means. call jquery abort on previous ajax request.
Comments
Post a Comment