Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what exactly happens when we use ajax

i am not getting what exactly happens when we use ajax.Page doesn't get refreshed everytime means what? is it related to page_load method or what

like image 554
Deepali Avatar asked Dec 13 '22 23:12

Deepali


1 Answers

The browser does http calls on a background thread, and you use javascript to modify the DOM when the result returns. This prevents you from refreshing the whole page and can modify parts on it at will.

Check out the definition at wikipedia for more information.

If you do ajax in a asp.net application page_load will be called for the page you request, just like a normal call. It's the rendering in the browser which is different. ¨ Key concepts: background calls and scripting.

like image 95
Mikael Svenson Avatar answered Dec 22 '22 00:12

Mikael Svenson