Gracefully Degrading AJAX with PHP and jQuery
Aug 19

The object of this tutorial is to introduce methods that can be used in just about any situation to provide gracefully degrading form post functionality that works with or without javascript. The form will be a lot nicer with javascript because it can do so without a complete page request and response. This is important to you and me because while we want fancy asynchronous data transfer on the web, we also don’t want to alienate people who browse without Javascript or use a dinosaur browser which can’t handle it. Asynchronous data requests and responses are much quicker because you can send and receive much less data than a full page response. This speeds almost everything up considerably. more…
CodeIgniter has some handy security features that sometimes get in the way. One such feature is URI scrubbing for disallowed characters. There are probably more secure ways to tell a script what email address to use than to pass it directly via URI. I’m using this for a simple intranet application to manage email recipients for a UPS & FedEx tracking emailer. So it is not important to cloak the email address being passed. Make sure this method is right for your project before you use it. It can expose email addresses to being indexed by spam bots or intercepted by hackers. 