A few months back someone posted a suggestion on QUnit for the inclusion of a “skip” feature. The idea, as far as I remember, was to highlight a test that wasn’t developed yet and allow the use of conditions to identify a given feature in a browser (and keep highlighting the test). In the end [...]
Archive for the ‘Javascript’ Category
I always used to copy a method to simulate a replaceAll with the javascript’s prototype, never thinking about speed. Now I decided to go and create a method by myself that do this and also allows you to ignore the case. The only bad thing (or not) is that you can’t use regex, just regular [...]
I’ve created a system to filter the text of a TD within a table and, based in a specific algorythm, show only the desired TRs. It works with the following rules: Given a table with thead and tbody, jQuery Table Filter creates an input below all TDs of theads that automatically filters the content based [...]
Javascript Date Format
Posted: Friday February 17th, 2012 in Javascript, ProjectTags: date, javascript
Searching the web I could not find a date formatter in javascript that could suit my needs. What I wanted was a way to parse / format any time trying not to implement all methods in the prototype of the Date object. Also choose freely the template to be used, allowing to write certain variables [...]