Creating Elements with jQuery and Internet Explorer

Programming

And if I had a gun, with two bullets, and I was in a room with Hitler, Bin Laden and Internet Explorer, I would shoot Internet Explorer twice. When creating HTML elements with jQuery, there is an elegant syntax that was introduced quite a few versions ago. $("<div/>", { id: ‘someDiv’, class: ‘someClass’, text: ‘Some… Read more »

How to Add Row Classes to Get Striped Tables With sorttable.js

Programming

If you’ve ever explored sorting tables, you might’ve come across a nice little library called sorttable. It’s functional, lightweight, and easy to add to just about any table. If you’ve got a table with alternating colors for the rows, this little library will mess that up for you. From the looks of the results in… Read more »

How to Use onbeforeunload with Form Submit Buttons

Geekery

While doing some programming I came across an interesting predicament. While I understand it’s evil to make it hard for a user to leave a page, I’m not here to argue the merits (or lack thereof) of onbeforeunload. On a particular form, we are forcing the browser to not cache the information to avoid potential… Read more »