returning one item at a time from ajax

I have a large list of objects that I have created in my WebMethod, which takes fairly long to load.

I was wondering if anyone had an example of pulling one item at a time allowing my ajax to display each object as soon as they get it, making them see part of the data faster(even tho it may be slower in the long run)



You would need to execute a separate ajax request for each item that you're retrieving. Also the WebMethod needs to receive as a parameter which item it should return on each request.

you can use serverside pagination by sending some offset and limit value, following can be reffered


Need Your Help

How do I know the current source version on a local machine

visual-studio-2010 tfs tfs2010

I'm woking with a team mate programming something in parallel with another group in the same solution.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.