October 2008
3 posts
So you want to click that button?
I stumbled upon http://clickthatbutton.com during my routine lurking of hacker news. After being amused for about 10 seconds,  I decided to take it to the next level; I wanted to click on it really, really fast. After going through a few solutions (simple js while loop in firebug, then curl/wget) and failing, the idea of using selenium popped into my head. So I went off to their site and installed...
Oct 29th
1 tag
Arrow key navigation for text fields
Here is a class for enabling the use of arrow keys to navigate through a grid of input fields: (using mootools) var FocusMover = new Class({ initialize: function(sel, col_num){ this.sel = sel this.col_num = col_num this.inputs = $$(this.sel) this.current_focus = 0 var self = this this.inputs.each(function(item,...
Oct 13th
1 tag
Tabbing through fields vertically
Sometimes it’s useful to switch the browser’s default tabbing behavior (left to right) to the opposite (top to bottom) when your input fields are in a grid layout instead the of the usual single column layout. Having to do this manually is a real pain, especially for large grids; So here is a solution in javascript, using mootools: window.addEvent('domready', function(){ var trs =...
Oct 11th