Quick Tip #4: fValidator – Javascript Form Validator

6 06 2007

For the web developers out there who spend a lot of time doing code on form validation, this little piece of “open-source” script might help. It’s called fValidator and it was created by Fabio Zendhi Nagao.Here’s a little quote from Fabio regarding his script:

Nowadays everybody knows that javascript can be used to validate input data in HTML forms before sending off the content to a server. Despite of that, when there are many fields in the form, the JavaScript validation becomes too complex and boring to code. That’s why fValidator exists, with it form validations are many times easier.

I specifically like the fact that it automatically validates your fields as you type your data – well, actually it’s not as you type, but as you move to other input fields. It also makes use of iMask, which is a tool for masking your input text fields or textarea fields. For instance, if you are expecting an input in this format: _ _ / _ _ / _ _ _ _, the input text field will display those characters as you type (see the attached screen shot for understanding). Aside from displaying those characters, it also restricts the input of letters if you only want numbers, and vice-versa.This tool really becomes helpful if you are creating registration forms for sites, or any other types of form for that matter. I personally am not bothered by using other people’s scripts to make my life easier. It’s really practical.Hopefully one of these days I might be able to contribute my share to the open-source community as well.



5 06 2007

It’s been a while since I last posted an entry here on my blog. That’s just because I’m… well, me – let me explain. You see, I get excited easily, and when I do, I tend to get engrossed with that which I am excited about and leave other things behind. But my excitement has the tendency to easily die down. When I first started this blog, I was really excited and kept posting at least two posts per day. Then I became a post per day. Then a post per week. Then a post per month. Then zero. I may not be making any sense here, but here I am, posting again and the excitement is on once more.

This may not make any sense, so I’ll just go right back at the topic: WordPressDash. WordPressDash is a Dashboard widget for the MacOSX which enables its users to quickly post articles on their wordpress blog, right from their dashboard! It’s a small application, only 84kB in size when zipped.

What’s so cool about it? Well, it’s a dashboard widget! All you need to do to write articles to your blog is to press F12 and start typing right away. No need to load your browser, and then log-in to your blog and all that. However, there are a few set-backs. As of version 0.4, the one I’m currently using, you still can’t put in any styles or any hyperlinks and images. You can assign categories to your article, but you can’t create categories.

Here’s a screenshot:WordPressDash

I guess it can be used to create quick posts which you can then later edit (if you want to insert hyperlink and styles and images) later in the day.