Quantcast
Channel: jondavidjohn.com » Javascript
Browsing all 8 articles
Browse latest View live

Vanilla Javascript Shortcuts For jQuery Addicts

This was an answer originally posted by patrick dw in response to a question of mine over on stackoverflow, and I thought It would make a very useful blog post to some, so all credit for the answer...

View Article



Javascript Event Handler Persistance With Closures

The Straw Man :   I need to know how many times a button has been clicked, and do something on every third click… Fairly Obvious Solution : // declare counter outside event handler's scope var counter...

View Article

Decoupling style from functionality – JavaScript and jQuery

We’ve all been there.  Working with a front-end developer/designer to get javascript functionality in place on an existing html/css layout.  We get half way through the functionality, depending on the...

View Article

Clojure threading macros in JavaScript

What to do when the wife is watching an uninteresting movie??!?! Implement Clojure threading macros in JavaScript of course. The thread-first and thread-last macros are a really neat feature of...

View Article

Include jQuery in the Javascript Console – Bookmarklet

A quick way to include jQuery in the browser console for a site that doesn’t use it. Just drag the following link into your bookmarks area and enjoy. Include jQuery

View Article


JavaScript Isn’t Scheme

Equating JavaScript to Scheme does Scheme a disservice, but it does JavaScript one too. If you’re going to be a JavaScript fanboy, fine, but be a JavaScript fanboy, not a Scheme-by-proxy one. Telling...

View Article

BubbleChart JavaScript Module

I’ve resurrected an old JavaScript project of mine, and used it as an opportunity to start learning a handful of new technologies. Over the course of the project I’ve been able to dip my toes in: Grunt...

View Article

How to extend JavaScript Functions

This is a pattern you can use to extend JavaScript Functions, including native functions. For example, we’ll extend the join() function of the Array type and add some logging before passing control...

View Article

Browsing all 8 articles
Browse latest View live




Latest Images