aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes How does a browser match responses with request Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How does a browser match responses with request" Watch "How does a browser match responses with request" New topic
Author

How does a browser match responses with request

Anne Forumer
Ranch Hand

Joined: Apr 19, 2004
Posts: 72
A user can submit multiple requests from a browser. Say I click on one bookmark and before I see the response to it, I click on a second, different, bookmark and then a third different bookmark. How does a browser decide which of the three responses to show and what happens to the other two responses?

Thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
And what are these responses? Form request, XMLHttpRequest?

A bookmark is going to bookmark the url. So with that said, that is what you will get.

Eric
Anne Forumer
Ranch Hand

Joined: Apr 19, 2004
Posts: 72
User is simply clicking on different URLs in succession before URLs show up. It shouldn't matter what kind of responses these are?

So, the browser receives responses to all of these clicks. How does it determine which of these responses to show?

Thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
Each time a user clicks, it overwrites the last response. Try it on any page and you will see it

Eric
Anne Forumer
Ranch Hand

Joined: Apr 19, 2004
Posts: 72
If I click on link A and then link B and then response for link A arrives before response for link B, how does the browser know that it is response for link A? How does it then decide to not show it (or show it) because link B has been clicked?

Thanks
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
One fun way to look at what is going on would be to install Ethereal , or some other sniffer, than click on a link, and than see what is going on.

Also, I you might want to read something about protocols like HTTP, TCP, UDP, IP - just to understand how it works.

If you don't wont to go that deep, you can think that when you click on a link previous connection is dropped - so the browser itself never receives the previous click result.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How does a browser match responses with request
 
Similar Threads
bookmark favourite post
MultipartResponse(Sending Image and HTml Content )Servlets
My suggestion
bookmark a page
AJAX Navigation