Share via


Ajax postback or full postback

Question

Wednesday, June 25, 2014 7:18 AM

Hello!

When search something on Google, a navigation page appears at the bottom of the page.
By clicking next page, an ajax request is made, but if we ask to open a new tab is made ​​a full post.
Seeing the html, I see it is this link is a simple <a>.
How do they do to detect whether to make a full post or ajax request?

All replies (1)

Wednesday, June 25, 2014 7:35 AM ✅Answered

Hi,

More likely they use the X-Requested-With: XMLHttpRequest HTTP header to detect AJAX calls...