News Feed
Jobs Feed
Sections




News Archive
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


blog comments powered by Disqus

Similar Posts

Tony Bibbs' Blog: Problems Using Zend Studio after Upgrade to openSUSE 10.3

Hiveminds: How to Bridge PHP and Java for Powerful Web Solutions

DevShed: Drawing Functions and the GD Library in PHP

Dave Marshall' Blog: Asynchronous cache priming with progress bars via Gearman, Memcache and Dojo

Pádraic Brady's Blog: PHP OpenID 2.0 library for PEAR Updates


Community Events











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


unittest project facebook install introduction framework security hhvm symfony2 performance component example composer package release language application hack podcast database

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