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

DevShed:
PHP/Javascript - Storing Data on the Client
May 09, 2005 @ 11:29:18

DevShed has this new article today about one of the "hot topics" going around in PHP circles these days - PHP and Javascript Interaction (Storing Data on the Client).

Modern websites demand heavy interaction between server-side and client-side programming. In the first part of this article series, we will implemented a simple mechanism to make PHP and JavaScript interact, creating a function which can build an array structure and store information in it. It will allow for programmatic data manipulation without server interaction.

We'll demonstrate how to use this approach to store data in the client and noticeably reduce the client-server transferring process, developing a couple of applications useful for implementation on any project of your choice. Let's get ready to try out a combination of PHP and JavaScript.

Granted, it's not as fun as the whole XMLHttpRequest crazy that's been sweeping the 'net lately, but it's still a pretty useful bit of info to store away in your toolkit. PHP can provide a quick and easy way to generate tons of Javascript data on the fly - such as nested arrays, say for a heirarchal tree structure...

tagged:

Link:


Trending Topics: