I keep on hearing this words 'callback' and 'postback' tossed around.
What is the difference between two ?
Is postback very specific to the ASP.NET pages ?
I keep on hearing this words 'callback' and 'postback' tossed around.
What is the difference between two ?
Is postback very specific to the ASP.NET pages ?
A postback occurs when a request is sent from the client to the server for the same page as the one the user is currently viewing. When a postback occurs, the entire page is refreshed and you can see the typical progression on the progress bar at the bottom of the browser.
A callback, generally used with AJAX, occurs when a request is sent from the client to the server for which the page is not refreshed, only a part of it is updated without any flickering occuring on the browser
I agree with Dreas' answer, but I'd like to add a couple of points. Postback is a term that gets introduced very recently by ASP .NET programming as Dreas explained, whereas callback is more generic and has been used way before web development exists. In fact I first heard about callback back in the days when I started programming in C (maybe the term existed before that, I don't know) and it simply means a pointer to function and this pointer to a function (name this A) gets passed to another function (name this B) which will later invoke A. Callback is also recently used by Yahoo UI Connection Manager and other Ajax frameworks but I believe the term had its first use back in the old C days.