"I'm JavaScript," the character chirped. "I'm the logic of the browser. I can make things move, validate forms, and create pop-ups. But if you want to talk to the server without that annoying page blink, you need my friend, ."
Once upon a time in the land of Static-Web, a young developer named Dave sat in front of his monitor, sighing. Every time a visitor clicked a button on his site, the entire page vanished for a second, blinked white, and then reloaded everything from scratch just to show one tiny line of text. It was like a waiter at a restaurant who, every time you asked for a clean fork, insisted on taking your food back to the kitchen, remodeling the dining room, and then bringing everything back out again. "There has to be a better way," Dave muttered. JavaScript & AJAX for Dummies
The agent is hired and the path to the server is opened. "I'm JavaScript," the character chirped
The server starts handing over the data. But if you want to talk to the
The agent reaches the server and says "Hello!" The server acknowledges with a status code—hopefully the famous 200 OK .
A second character, a swift-moving messenger with a backpack labeled , zipped into view.