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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -