Recently I’ve been incorporating alternative techniques to Captcha to prevent automated form submission on websites, which is typically spam, or something else you don’t want happening. I added our routines to the new iBegin’s submission system today, and thought that I’d share with the world what we’re doing. I’m also curious as to what everyone [...]
Posts Filed in "JavaScript"
I had to fix a strange bug today in the iBegin Share widget. On one of our pages (the readme specifically) it was positioning wrong. The goal was to position it 5px below the bottom of the object it’s attached to. Easily enough I was able to Google and find the same 10 results that [...]
One of my first projects at the new company has been updating a script called iBox. Most people are familiar with the concept, that of lightbox, as well as how inefficient most of the scripts are. The goal of iBox is simple: provide a lightweight modal dialog box with additional support for document types to [...]
3
Jan
trim() in JavaScript
So today I went searching for a trim() method in JavaScript. Much to my suprise, one didn’t exist. We actually had one locally that another developer had written, but it was only trimming whitespace (no optional argument to trim a certain character). So today, I went ahead and wrote one.
20
Dec
dir() in JavaScript
I was working with some JavaScript code today (for our new moderation tools on Curse), and found something interesting. Let me first say by in no way do I claim to be a JavaScript expert, so don’t tease me too much.
Since everything on page one of google isn’t, well, perfect, here’s a fully working example where you don’t need to type in your silly domain name. # redirect all non-www traffic RewriteCond %{HTTP_HOST} ^([a-zA-Z0-9\-]*)\.com$ RewriteRule ^.*$ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] For the unknowing, this code uses mod_rewrite.
21
May
Popup Calender
This script is incomplete, but it will output a perfectly working calender using a dd/mm/yyyy format. I will update this post when the “outputString” option works as intended. bool cal_show(object linkObject, string inputBoxName) Grab the source for the javascript popup calender.
21
May
HTML Tooltips
So I finally took the time to rework my tooltips script which is in use on sites like WoW Guru. I originally created it as an alternative to using overlib and other quite large (bloated?) libraries as I didn’t need 90% of what they do. The tooltip library is very simple, as it currently has [...]
