Posted December 3rd, 2009 by George Huger
We recently created a contact submission form on a client’s Facebook page, and were not satisfied with the default user experience. For starters, the form opened a new window, and there was no way to redirect the user back to a confirmation message on the Facebook page.
We decided to submit the form via AJAX instead, and show the confirmation message directly on the Facebook page. This way the user would not have to leave the Facebook page, resulting in a smoother user experience. We couldn’t find a good explanation of how to do this on Google, so after figuring it out I decided to go ahead and write it up.
The following example will show you how to submit a basic contact form using AJAX from within your Facebook page. All HTML and Javascript that follows should be pasted directly into the “Edit FBML” screen on Facebook.
Continue reading “Submitting a Contact Form via AJAX From Your Facebook Page” »
Tags: Facebook, FBJS, FBML, Javascript
Posted in Facebook, Javascript, Web Development
Posted May 23rd, 2009 by George Huger
At Illuminati Karate we love a challenge. So when our client called needing two lists of 1500 IP addresses geocoded as quickly as possible, we rose to the occasion. With the help of PHP and a freely available web service we were able to complete the task in just under an hour. Here’s how we did it.
Continue reading “Free Webservice to Geocode IP Addresses Saves The Day” »
Tags: geolocation, JSON, REST
Posted in PHP, Web Development, Webservices
Posted March 5th, 2009 by George Huger
Nothing exposes the gap between web apps and desktop applications more than plain HTML forms. Fortunately, by leveraging Javascript we can start to close this gap while maintaining a consistent experience for users using screen readers and old browsers.
We’ve identified 10 ways in which normal HTML forms fall short, and dug up the Javascript and CSS code you’ll need to fix them. Although the best enhancements are so intuitive as to be unnoticed, rest assured your visitors would thank you if they knew.
Note: Many of the solutions in this list depend on jQuery, our javascript framework of choice.
Continue reading “10 Javascript Tricks for Better Forms” »
Tags: combo box, forms, progress bars
Posted in Javascript, Web Development, jQuery