WordPress Plugin Development Beginner's Guide
上QQ阅读APP看书,第一时间看更新

Demystifying Ajax

Ajax is a technology that allows web pages to dynamically perform actions or updates. This allows for a higher level of user interactivity that we can see in popular applications such as Google Maps or Gmail.

Since its introduction in 2005, Ajax has stood out as an excellent addition to the web developer's arsenal, but several developers have been reluctant to use it due to certain initial problems and cross-browser compatibility issues.

Fortunately, today these issues are gone thanks to high-level libraries such as jQuery that take care of all Ajax calls internally and give us a simple to use API.

Simple example of using Ajax

Now that we have a pop up in place, we need to fill it with data from the RSS feeds. We have already learned how to parse RSS so all we have to do is create a function to display several posts from a feed at once, and fill our pop up with this information using Ajax.