I have a web page with several jQuery ajax calls which fire asynchronously at the same time against .NET web methods.
These web methods return data back to be processed by the success callbacks for each .ajax call.
My question is probably low level. How does the jQuery/Javascript know which data goes back to which .ajax call? I looked at the return packet using a network sniffer and I couldn't see any type of identification which could be used to link it back to its originating call. My guess it has to do with the jqXHR object. If it's in the response packet, I can't see it in the sniffer.
Any technical explanation could be helpful.
Addition: I am asking this because I will use asynchronous methods in the server side. The method the .ajax originally called is not the one returning the data. A different thread is doing the work.