News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
NETTUTS.com:
Creating a Dynamic Poll with jQuery and PHP
July 25, 2008 @ 10:22:05

The NETTUTS.com website has a new tutorial posted that combines PHP and AJAX (using the the jQuery library specifically) to create a simple dynamic poll.

When you combine some neat functionality courtesy of PHP with the cleverness of jQuery you can produce some pretty cool results. In this tutorial we'll create a poll using PHP and XHTML, then make use of some jQuery Ajax effects to eliminate the need for a page refresh, and to give it a nice little bit of animation.

The PHP handles defining the question, answers and the functionality to load, submit and return the current results (number of votes) back to the javascript. The communication between the PHP and javascript is a JSON message made simple thanks to PHP's json_encode function.

You can download the source or check out a live demo to see how it all fits together.

0 comments voice your opinion now!
jquery javascript json poll dynamic demo download tutorial



Similar Posts

ParanoidFerret.com: Flex & PHP Tutorial - Transmitting data using JSON

Ilia Alshanetsky's Blog: 5.2.4 RC1 Released

Sebastian Bergmann's Blog: Tutorial at ZendCon 2007

Zend Developer Zone: Tutorial : Using Zend Framework Without PDO

php|architect: Using PHP5's SOAP Support


Community Events









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


ajax framework example package mysql developer database PHP5 cakephp job release PEAR releases zendframework code zend security conference book application

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