News Feed
Sections




News Archive
feed this:

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
August 10, 2006 @ 07: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.

0 comments voice your opinion now!
adding ajax website tutorial part2 realtime javascript library adding ajax website tutorial part2 realtime javascript library



Community Events





Don't see your event here?
Let us know!


install bugfix laravel opinion release framework deployment language unittest interview series zendserver library api voicesoftheelephpant podcast introduction symfony package community

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework