Thursday, July 17, 2008

JavaScript in PSP

The PSP's web browser is no slouch; although it's not as feature-laden as the latest desktop browsers, it holds its own pretty well. If you know a little HTML, CSS, and JavaScript, you can create DHTML applications that run right in the browser. For example, here's a short program that draws a chunky version of the Mandelbrot Set, one of the most famous fractals (objects that exhibit self-similarity at various levels of detail but with an organic irregularity): Download the sample script here

You can save this as an HTML file on your PSP's memory stick, navigate to it with the 2.0 firmware's web browser, wait a minute or two, and then see the fractal displayed (albeit rather crudely) on your PSP's screen.

In fact, you could combine DHTML with Perl to create a read-only copy of your address book, calendar, or favorite recipes on your PSP. Create some attractive styles to present the data, use JavaScript to create navigation features, and use Perl to extract the data and dump it into an HTML file that acts as the back-end database for your styles and scripts.

No comments: