• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

How does a browser match responses with request

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
You got style baby! More than this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic