Thread: Target div
View Single Post
Old 12-30-2007, 12:01 AM   #2 (permalink)
Alan @ CIT
Member of the Month
The Frequenter
Member of the Month Top Contributor 
 
Alan @ CIT's Avatar
 
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
Alan @ CIT is on a distinguished road
Default

Unfortunately this cannot be done with PHP alone. You will need to use a combination of Javascript and PHP to achieve this using Ajax (google Ajax PHP for more info). Essentially, your backend PHP script sends the updated text/html/etc using Ajax or more specificly, XML-RPC to the Javascript which then dynamicly updates the webpage without the need for a reload/refresh.

A few little tutorials / guides to get you started:

'[php] Rasmus' 30 second AJAX Tutorial - [was Re: [php] AJAX & PHP]' - MARC
PHPBuilder.com, the best resource for PHP tutorials, templates, PHP manuals, content management systems, scripts, classes and more. (good diagram to explai the process)

Alan.
Send a message via MSN to Alan @ CIT
Alan @ CIT is offline  
Reply With Quote