» Programming » Javascript

Javascript in itself isn't all that difficult of a language. It's just like any other C-style language. It's got syntax that's easily familiar to any seasoned programmer, and standard enough library functions that it can be picked up rather quickly. The difficulty comes in when you try to get it working across browsers. While this isn't as much of a hassle as it used to be (the days of Netscape 4 and IE 4/5 were absolute hell for web developers) it's still not always easy. I've spent a lot of time on various little snippets to work across every modern browser. Now, when I say modern browser, I am excluding some people. I don't believe that Netscape 4 and IE 5 need to be supported any longer. They're dead. I do, however, test my code against IE 6+, the latest Opera, the latest Firefox, and usually Safari if I can get access to it.

What I've got here on this page are some of the pieces I've written, all of which should work across all of the mentioned browsers. There are different cross browser tricks spread throughout, but I've found that once you adopt some good standard practices, you don't even have to think much about cross browser compatibility anymore; for the most part, things just work.

Name Description  
sudoku.htm A sudoku assistant; assists in visualizing the available squares on a sudoku board view code ‹› demo
money_format.htm This little beauty maintains a constantly formatted full dollar amount in a textbox. It insures that the contents stay in the form of: $1,234,567.00 view code ‹› demo
cryptogram.php A cryptogram puzzle generator; the javascript is involved in allowing the user to solve the puzzle. They can input which letters they would like translated, and the display will be instantly updated. view code ‹› demo
cryptoblock.php The same as the cryptoblock above, but infinitely harder. This mashes all the words together and then splits them up into 5 character chunks. For the more advanced puzzle solver! view code ‹› demo
limiter.htm A small script to constrain a textarea to only allow a limited number of characters. view code ‹› demo