![]() |
Target div
Is't anyone that know if it's possible to have taget in php code to one special div. I don't want the whole page to be updatet only the div tag. I know that it's possible to in javascript dose it work in php?
|
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. |
You will need a combo of AJAX and PHP to get results like that. Here's a great "tutorial" on that (by Rasmus himself!)
|
| All times are GMT. The time now is 07:29 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0