Ajax Makes Everything Better
Found this by following a link on Creating Passionate Users:
So far, the most popular posts I’ve written (if you discount the rant about syncing my mobile phone on Windows) are the two about getting dynamically loaded JavaScript code to execute in the global context.
Back a million years ago, I wrote about using Ajax to allow visitors to search my site. When I ported the Web site from MovableType to WordPress, I had to give up this feature because I didn’t know PHP or WordPress well enough to make it work.
I just realised that there are quite a few links to newburyportion based on the Ajaxified search I hacked together in a previous version of the site.
Of course, that got lost in the transition to WordPress. Perhaps I should try to resurrect that feature…
I’ve been working on an authentication system for TurboGears and my forthcoming Content Management System.
I really wanted to support a REST interface to the admin console. For example:
GET /admin/user/jeff HTTP/1.1
Accept: text/javascript
Should return a JSON formatted object containing my user record. That actually works great.