Quantcast
Channel: Toby's Ramblings » JavaScript
Browsing latest articles
Browse All 14 View Live

Using Loops in Jasmine

If you want to test your code against 10 different inputs you don’t want to have to write 10 different tests. You want to write one test you can call 10 times. The cleanest way to achieve this is to...

View Article



Refreshing local data with typeahead.js

If you are using local data or prefetched data with typeahead.js and you want to refresh that data there is a three step process you need to adhere to; Do not pass a name into your typeahead, doing so...

View Article

Getting the flot-rails gem to play nicely with IE8

Flot is a really useful graphing tool built on top of jQuery, and someone has very kindly created a rails gem called flot-rails which allows you to easily include the relevant JavaScript files in your...

View Article

Setting a minimum length for your search in Typeahead.js

I was looking through the Jasmine tests for Typeahead.js whilst doing research for a book I am writing on the subject and I noticed a handy little thing that isn’t documented on the Github page. You...

View Article

Typeahead.js The Book!

Today I sent my first draft of a completed book off to Packt publishing for a book they asked me to write on Typeahead.js I was super stoked to be asked to write this book because writing is something...

View Article


Transliteration with Typeahead.js

Often in real world web applications we have to deal with words or characters that fall outside of the standard latin-based keyboard character set. For example lets say we wanted our users to search...

View Article

A fix for window.location.origin in Internet Explorer

Internet Explorer does not have access to window.location.origin, which is a bummer because it is a pretty handy variable to have, but we can make it work with a fairly straight forward check because...

View Article

Upgrading from Bootstrap’s Typeahead to Typeahead.js

For those of us who use Bootstrap in our projects there was some excellent news this week that Bootstrap is now officially on version 3. It brings with it a lot of cool changes. One of the not so cool...

View Article


Accessing Popover Data with Bootstrap 3

I was banging my head against this today so I figured I would share to hopefully reduce someone’s banging their head time by a few minutes. One of the things Bootstrap has done as part of their upgrade...

View Article


Image may be NSFW.
Clik here to view.

Interview with Trevor Orsztynowicz about Caliper

Today I am talking with Trevor Orsztynowicz about his exciting new company Caliper.io. Caliper is performance monitoring for single page webapps by hooking into tools like Ember.js I want to thank...

View Article
Browsing latest articles
Browse All 14 View Live




Latest Images