Tag Archives: JavaScript

.fadeIn() and jQuery Goodness

While carousing the jQuery IRC channel on free node the other day, I noticed that one user in the chat was looking for a way to streamline multiple calls to jQuery’s traversal methods, namely, prev(), next(), and parent(). He asked, instead of writing parent().parent().parent().parent().parent(), can’t we just write .parent(5)? I was really excited to hear this for a few reasons. Continue reading

Posted in JavaScript | Tagged , , , , , , | 1 Comment

One Line Random Boolean in JavaScript

Happy Holidays everyone! I hope everyone enjoyed the holidays this year. I’m back to work today. I just wanted to post a quick snippet that I used in a jQuery plugin I’m developing. It’s nothing earth shattering, but I thought … Continue reading

Posted in Uncategorized | Tagged , , , | 2 Comments

Relative Date String in JavaScript

Here’s a script I wrote awhile ago that’s used in this site and a few other projects of mine. It’s a method attached to the JavaScript Date object to output the date relative to now. It works for both past … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

JS Bin Links Now in All Code Snippets

I’ve edited the core of the Syntax Highlighter plugin used on this site to highlight code snippets to include JS Bin links on its toolbar (where applicable). If the code snippet can be represented and played with in JS Bin, … Continue reading

Posted in JavaScript | Tagged , , , , , , | Leave a comment

Strip Specific HTML Tags From String

In fiddling around with some code highlighters to use for this blog, I found myself needing a way to strip tags from a JavaScript string of HTML, while leaving others. I needed it so I could convert highlighted code to … Continue reading

Posted in JavaScript | Tagged , , , , , | 2 Comments

New Design

I just “finished” the new design for my blog. There are still some optimizations to make, bugs to squash, and some cross browser issues to tackle, but this is it, in essence. If you’re viewing this page is Firefox 3.5, … Continue reading

Posted in JavaScript | Tagged , , , | Leave a comment