EvilRob.org -> Weblog

Sysadmin Field Notes

Using Greasemonkey In Web Development

July 30, 2005

So I've been a little hesitant about Greasemonkey in general just because of the potential for hassle (always having to change scripts as pages change, security issues, etc.).

Well, I thought of a killer use for it when developing web applications; using it to pre-populate forms with valid data. Create a little script that fills your form with data. If you're working on things like, oh, say 10 page loan applications, filling out all that data by hand when you're trying to test or troubleshoot somtehing is a pain.

I've written up a script for the app I'm working on right now, and it rocks (just adds a little "click to populate" button on the upper left hand corner of the page). It could be extended to create random data based on validation rules, etc..

Anyway, if you're building a web app with a long form, consider some greasemonkey action to speed along data entry, it's saved me tons of time already.

(And in the process, I discovered that Greasemonkey is pretty fun tool for its more intended purposes as well).

Posted by rmeyer at 10:27 AM

This is Rob Meyer's weblog, a weblog focused on software development and system administration based on 10 years of experience. Want to explore further? You can find out more me or see the rest of my website.

Wondering if I've written on something in particular? Try searching:

You might want to take a look at some of the more requested postings (as judged by incoming traffic):

Want more? Subscribe to this site or contact me at rob at big dis dot com.

See my writings on:


Powered by Movable Type | Technorati Profile