O'Reilly logo

PHP Ajax Cookbook by R. Rajesh Jeba Anbiah, Roshan Bhattarai, Milan Sedliak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Implementing Best Practices to Build Ajax Websites

In this chapter, we will cover:

  • Avoiding HTML markup-specific coding
  • Building secure Ajax websites
  • Building Search Engine Optimization (SEO)-friendly Ajax websites
  • Preserving browser history or un-breaking the browser's back button
  • Implementing comet PHP and Ajax

Getting things done is one thing and getting them done right is a whole other thing. JavaScript programmers often aim for best practices. As UI programming is gaining popularity, it demands better organization and practices. In this chapter, we'll see some common best practices.

Avoiding HTML markup-specific coding

In the unobtrusive JavaScript approach, where selector-based frameworks such as jQuery play major role, the interaction ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required