News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Kae Verans' Blog:
innerHTML in php-dom
July 28, 2008 @ 11:13:16

Kae Verans has written up a handy snippet of code to try to mimic the innerHTML property that Javascript lets you have access to.

DOM does not officially have an innerHTML parameter, but it's incredibly useful. I found a need for something similar when working on some DOM stuff, so had to write a version.

Technically it's an "outerHTML" not inner, but it works about the same. The code and an example of its use is included.

0 comments voice your opinion now!
innrehtml outerhtml dom snippet example


blog comments powered by Disqus

Similar Posts

Evolt.org: AJAX Login System using XMLHttpRequest

OpenSky Blog: Inheritance in PHP, or why you want to use an Interface or an Abstract class...

Mike Potter's Blog: Flex and PHP Samples from Adobe MAX Europe

Fernando Bassani's Blog: Putting the PHP/Java Bridge to work - I

LoLoCoJr BLog: Rewriting a (large) PHP application to Rails, part 1


Community Events

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


language opinion threedevsandamaybe security framework podcast extension symfony version release laravel5 unittest interview library series api voicesoftheelephpant community laravel introduction

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