Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Joshua Eichorn's Blog:
Adding AJAX to a Website step by step, Part II
Aug 10, 2006 @ 12:57:28

Taking the next step in the series, Joshua Eichorn has posted part two of the "Adding Ajax to a Website step by step" series today, a continuation from this previous post.

I have a lot more change's i'd like to make to webthumb so the last article (Adding AJAX to a website step by step) is now the start of the series. In this article will be taking front page of webthumb and making it live. The the stats and recent thumbnails will update in real time, making for a nice slick presentation.

I hope to release and article for each improvement I make to webthumb, giving everyone idea of whats involved in AJAXing a real website. But a series of articles won't cover everything you want to know about AJAX.

The focus in this new post is his method of grabbing the latest information from the server without a needless page reload. In this case, that means grabbing the latest thumbnails that have been created.

He includes the code for the different parts: exporting the PHP class to allow the Javascript to access it, a sample response from the HTML_AJAX server and the server code itself. From there, it's back to the client side for the Javascript code to make the request (and set a timer on it) and updating the page with the latest content. There's also a brief mention of how HTML_AJAX can push out other Javascript libraries, which he uses to push moo.fx for a transition effect on the thumbnails.

tagged: adding ajax website tutorial part2 realtime javascript library adding ajax website tutorial part2 realtime javascript library

Link:


Trending Topics: