My little form doohicky library is awesome (unfortunately, the version up there is pretty old). I know I've molded it into something fairly decent because I just added something to one of my 'actions' and I did what I thought should work, and it actually worked without changes to the library.
What I added was a hidden field in my comment form that tracks the referrer that someone has when he first gets to one of my weblog posts, which will stick with the form through previews and so on and I'll get it when I get my mail notification of the final post. That way, instead of having to look through my log to see where people came from (i.e. search engines or wherever), I'll have it right in my e-mail. Previously, I already got the referrer in my e-mail, but since the actual referrer for the comment submission will always be the same as the page of the weblog post it was pretty useless.
It took all of about 3 lines. 1 to define the field. 2. a condition to set it to the referrer if the field hasn't already been set and if the referrer is set. 3. something to set $_SERVER['HTTP_REFERER'] to that field before my mail gets sent off.
So, at work I've just been using the default settings on Visual Studio to determine my brace style and indent style. To my surprise I've found the spaces vs. tabs issue far more important than having my code look "double spaced" with braces on their own lines. For one, ASP.NET doesn't get you very dense or detailed code anyway, so it doesn't matter as much that there are some extra blank lines spacing out the code. The thing that's annoyed me about having leading spaces instead of tabs is that it gets real old real fast having to hit the backspace key four times the number of times I'd have to hit it were I using tabs. Say I hit the tab key an extra time by accident... that's four times I have to hit the backspace key. In fact, that's an extra argument for using tabs I hadn't considered before. A one-to-one correspondence not only between the number of times you hit 'tab' and the number of characters put in the file, but between the number of times you hit 'tab' and the number of times you have to hit 'backspace' to remove that "tab".
getElementsByClass function
http://pitfalls.wordpress.com/2008/07/07/querying-it-jquery-way-getelements...
maxgandalf: Jul 7, 5:50am