Rich Ajax slide shows with DHTML and XML |
|
|
Retrieving database information with AJAX, PHP and MySQL - By Jack Herrington Over IBM DeveloperWorks, Jack Herrington has published an article on Rich Ajax slide shows with DHTML and XML. In this article you will learn to create an Asynchronous JavaScript and XML (Ajax) client-side slide show that's animated using "Ken Burns Effects." Here, you discover how to build XML data sources for Ajax, request XML data from the client, and then dynamically create and animate HTML elements with that XML.
The Ajax model of client-server interaction
How difficult is Ajax to implement? Each element of the Ajax model is relatively easy to learn. But the trick is blending all the elements into a seamless experience. Often that problem is compounded, because different individuals do the client-side and server-side coding. This article shows how just one person can write a small Ajax-based slide viewing application in a couple of hours.
In this article, He used object-oriented JavaScript code whenever possible. JavaScript is a fully object-oriented language, and although it might not use the class and interface keywords, it keeps your code clean and maintainable. He also recommend the use Ajax frameworks if you can. He didn't use one here because he wanted to show a lightweight Ajax solution. But today's frameworks -- and there are many of them -- make it easier to write more portable Ajax and DHTML code.
Snapshot from the slide show
 Read more...
|
No Comments.