Archive for the 'Javascript' Category
Portfolio
I have gathered some of the better work that I have done over the years, took some screenshots, and posted them to a running instance of MooFlow. Hopefully it can serve as a portfolio for others to view and discuss.
See it at the following url: http://karlherrick.com/portfolio/
Posted by Karl Herrick on October 11th, 2009 in Wordpress, Javascript, PHP, XML, Web Development, Firefox, Hosting | No Comments »
Magic vs. iUI
I wonder how Magic Framework stacks up against iUI: iPhone User Interface Framework. I have used the latter with great results… maybe next time I will give Magic a try. ![]()
Posted by Karl Herrick on August 6th, 2009 in Javascript, Apple, Web Development | No Comments »
iUI and the iPhone
My employer recently purchased a set of iPhones from AT&T for those in the workforce that have a need for such a thing. One of our first priorities was getting our rolodex accessible (read only) from the road. The main problem is that the data is in a restrictive, old school database. Until we can find time to move it into a more open platform I did the following:
- Set up a routine for dumping the rolodex into a flat xml file monthly
- Coded the searching of the the data using PHP and SimpleXML
- Coded the cookie management (sessions) and most important, a “remember me” feature (because Safari doesn’t remember passwords on the iPhone)
- Found this lovely library for creating iPhone compatible user intarfaces via the web (read, looks like a native app): iUI (User Interface Library for Safari development on iPhone)
Checkout the screenshots:
It’s pretty cool, because if the contact in the rolodex has a telephone number, address, email address, or webpage associated with them, the data will be displayed and linked to iPhone friendly functions… For example, the telephone number, when clicked on will provide a call button. An address clicked on will link to the built in maps app. Email links open up directly in the built in mail app. Finally, of course, webpages openup in Safari.
So here’s for getting the world more connected… one app at at time.
Posted by Karl Herrick on December 8th, 2008 in Javascript, Apple, PHP | 1 Comment »
Watching MooFlow
I’ve been hacking around with and watching the development of MooFlow over the last few days. It looks and works pretty nice in most browsers and has quite a few options to play with. In this MooFlow demo posted, most options are enabled and the images are imported from page.html.
Other examples at the MooFlow site showcase some of the other features, like images that have external links attached to special buttons, drop down descriptions that float over the image, and the ability to get your images via JSON.
The development version still has a few noticeable bugs:
In Firefox 2.0.0.12: When resizing the stage (bottom right button), the quicklook button shows. When pressed, the image appears under the stage. The user may not realize this until the stage is restored to it’s normal size.
In IE7: When clicking the quicklook button, the image is not zoomed to full size.
Even though there are a few bugs to be worked out, MooFlow already looks great. Not to mention all of the ways it could be used. It even accepts keyboard and mouse scroll input. What’s not to like?
Posted by Karl Herrick on March 29th, 2008 in Javascript, Web Development | No Comments »
reCAPTCHA plugin error messages
By default, on two of my installs of reCAPTCHA Plugin for WordPress - v2.7, I receive no error message if the captcha is entered incorrectly… the user of the weblog is to assume that they made a mistake I guess…
That is until I wrote this script to check for error messages being passed around on the URL by the plugin:
if (window.location.search != "") {
var searchArray = window.location.search.split("&");
for (var i=0; i < searchArray.length; i++) {
var searchSubArray = searchArray[i].split("=");
if (searchSubArray[0] == "rerror" &&
searchSubArray[1] == "incorrect-captcha-sol") {
document.write("<p><small style=\"color: red;\">The two words in the picture were typed incorrectly.</small></p>");
}
}
}
</script>
Just drop that snippet into your “comments.php” template. When the captcha is filled in incorrectly, the plugin adds “rerror=incorrect-captcha-sol” to the url. This checks for that string, and if found, writes an error message in red.
Posted by Karl Herrick on February 3rd, 2008 in Javascript, Wordpress, PHP, Web Development | 2 Comments »
