English 中文(简体)
ASP.Net MVC Ajax.Beginform giving unexpected results when clicking quickly
原标题:

I am using ASP.Net MVC ajax.beginform to change the content in a panel, I am also switching some other elements on the page with javascript,

if I click quickly between two of the options the javascript behaves as expected but the ajax does not always return the content related to the last clicked button.

anyone else had this problem and are there any fixes or workarounds?

Cheers.

Mark

最佳回答

That s normal, AJAX is asynchronous meaning that the order you would receive responses from the server is not guaranteed to be the same as you send the requests. You might need to queue the requests. There are some good jquery plugins that allow you to achieve this. But with MS Ajax I doubt.

问题回答

暂无回答




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签