Posts Tagged ‘JavaScript’

Count number of jobs in Hudson

Thursday, June 14th, 2012 by Jesper Rønn-Jensen

Small script to count the number of jobs on a Hudson server — with JavaScript

Introducing Tiny JavaScript Number Formatter

Monday, August 18th, 2008 by Jesper Rønn-Jensen

For a current project, I created a tiny number formatter that inserts thousand delimiters in a string: 10000 to 10,000 etc. Just add css class=”numberformat currency” to a text field, and it will be formatted automatically. It is based on the Prototype JavaScript library. You can get it from it’s GitHub repository page. Feel free […]

Adding Deprecation Warning in JavaScript Console

Thursday, July 17th, 2008 by Jesper Rønn-Jensen

I used this quick trick today to help me clean up and refactor some javascript functions today: if (“console” in window) console.warn(‘DEPRECATED function call to ‘+ arguments.callee +’\nCalled by:\n’+ arguments.callee.caller ); Which results in a fine deprecation warning in the console: There is plenty of space for improvement here. Feel free to use or tamper […]

Firefox Tip For Framebuster JavaScript

Monday, October 22nd, 2007 by Jesper Rønn-Jensen

I have for long been struggling with an internal legacy application that wraps the content page in a frameset. Very annoying because I have spent some time to reverse engineer a poor-mans API to the application. Problem: An inline “reverse” framebuster script that makes sure that everything is nicely(?) wrapped in the frameset. As you […]