How do I manipulate the DOM of PHP pages with AJAX?

James

New member
Hi,
I've used Javascript to manipulate the DOM of HTML pages, such as creating and appending new HTML elements to add new input fields, divs, etc to the HTML page. I want to do the same with Javascript and PHP pages, I've been told I can do this with AJAX. Can you please point me to some easy tutorials online and tips for manipulating the DOM in PHP pages with AJAX?

Where do I start? Once I use an XMLHttpRequest object, can I manipulate the DOM in a PHP page just as I would manipulate the DOM in an HTML page, or are there other steps which must be taken?

Thanks!
 
PHP is a server side language, that typically produces HTML, which is sent to the browser. From there on, it orks exactly the same as you're used to.
 
Back
Top