-
posts
-
Javascript Templating Languages
I have been looking at JavaScript templating libraries recently for a personal
project and I’d like to write about my thoughts here.
Up until now, I had only really needed to use JavaScript on the client side, in
the browser. While most libraries...
-
Using jQuery deferreds with Backbone.js
Backbone.js is a neat little JavaScript model framework. It gives you nice way of making Models and allows you to fetch and save them to the server easily using a REST API. One of the nice things about Backbone is that for a while it has returned ...
-
Phantom QUnit Test Runner
I have been using PhantomJS and
QUnit for a while now to run JavaScript automated tests.
I like QUnit because has a decent in-browser UI but also has a nice extension
API so you can create plugins and output in different formats if you like.
Ho...
-
My Love-Hate Relationship with JavaScript
I have a love-hate relationship with JavaScript. Well, more hate and less love
but I find myself conflicted when I write it. JavaScript simply makes it hard
for me to write good code. As a little background, the JavaScript I write is
almost exclus...
-
Shady Harvard Puzzle Facebook App Disassembled
Today I got an email from a friend on Facebook that suggested that I try
out this application called “Only 4% of harvard grads can solve this
riddle..”.
Being curious I took a look at it.
The app starts out innocently enough, posing a riddle that...
-
Connecting Sortables in jQuery UI
jQuery has a UI framework called
jQueryUI which provides a number of UI controls and
widgets that you can use to create cool user interfaces. I’ve been using
jQueryUI a fair bit for work recently and wanted to share a pretty cool feature
that jQue...
-
IE, JSON, and the script tag
My coworker recently introduced me to one of the most blatantly bad behaviors
in web browser history. He introduced it thus:
Out[1]: simplejson.dumps({'foo': '<script>alert(document.cookie);</script>'})
Out[2]: '{"foo": "<script>...
-
jQuery Multi-Pageslide
Earlier this week I came across the jQuery Pageslide plugin via
Ajaxian and was impressed with the design. I set
about using it to display help messages to the user for a site I am working on.
It worked well and all but I found that you can only ...
-
Ok/Cancel buttons with jqModal
I recently quit using Google Web Toolkit
and started using jQuery for a personal project of mine and I wanted to be able
to show some modal dialog boxes using jQuery. As it turns out there is an easy
to use plugin that does exactly this called
jqM...
-
Javascript Interpreter
I wanted a convenient way to test out some javascript by running it in a
browser and being able to play with it via an interpreter like python has. As
it turns out the almighty Bob created a nice
interpreter for playing around with Mochikit
but I ...