Blog

WordPress Ajax

Ajax uses a combination of programming languages such as HTML/CSS, JavaScript, XML/JSON, and a server-side scripting language (PHP, ASP.NET, etc.). It works by sending data from the browser to the server, which processes it and sends back a response. This response is used by the browser to update the web page without reloading it.

Here’s how it usually goes:

A user action triggers an event in a browser (like a button click).
The Ajax call activates, which sends a request to the server, using XML/JSON.
The server-side script processes this request. It can also access the database if it needs to.
The server then sends a response back to the browser.
A second JavaScript function, called a callback function, receives the response and updates the web page.

Great Ideas

We’ve created an example you can follow to help you get started with your WordPress blog. First, log in to your WordPress administrator area and select “Posts” from the menu options on the left. Then, select “All Posts” in the dialogue box that appears.

Pro Tip: As you add more content to your blog, there may be occasions when it would be appropriate to select multiple articles at once. To do so, you can select the “Bulk Actions” button on the All Posts homepage.