At Team4Talent we recently held an entire day of developer sessions. We regularly have someone give a session on an interesting topic, but always after work. This limits time somewhat. An entire day makes it possible to have multiple sessions and dive more deeply into the topics at hand.I myself gave a session on using Durandal for single page applications. Some of my colleagues are very much pro-javascript (looking at you Tim!), while others are sceptical. I hope I could

If you switched to **IE10 **and your Knockout bindings that previously worked in IE (8 in my case) now give you the following error: "String expected", you might want to check your bindings. Mine had a computed ‘toString’ member. I’m not sure what’s happening but choosing the name of an existing, default member might not be a good idea. Replacing it with something else (i.e. "description") and updating my markup fixed this issue. Just putting this out here in case

This is a classic problem: you want to style your <input type=”file” /> control but the options are kind of limited. The solution is to hide the control and add your own controls, passing any actions from one to the other. With jQuery this can be fairly easily achieved by the following script: $(function () { $(‘input[type=file]’).each(function () { var fileUpload = $(this); var textBox = $(‘<input type=”text” />’); textBox .css(‘width’, fileUpload.width() – 85) .css(‘margin-right’, 5) .prop(‘disabled’, fileUpload.prop(‘disabled’)); var button

Stuck with ye olde ASP.NET Webforms? It doesn’t mean you have to miss out on all the good javascript fun (which is, in fact, also an old technology). At my current client (being a consultant and all), we have carefully introduced Knockout.js for the more complex screens. To be honest, it’s only used in two screens at the moment, but the team is open to it being used more and more. That being said, we don’t regard it as the

In my spare time, I help maintain the website of the Ultimate Frisbee team where I play, the Ghent-based Gentle Ultimate. We have a fairly extensive amount of pictures and videos in a Google Picasa web album, which I wanted to integrate in our Drupal site.Funnily enough, there is no (good) Drupal module for integrating Picasa into Drupal. Sure, there are modules for adding albums to nodes, but none to just show all albums and let the visitor browse through them.There are two

ASP.NET (WebForms) has a concept of postbacks. This is not entirely the same a submitting the current form. A LinkButton for example, when clicked, will call a __doPostBack javascript function which was added by ASP.NET. This means that you can’t always subscribe to the ‘submit’ event with jQuery: $(‘form’).on(‘submit’, function() {}); You might want to subscribe to the postback because, just before calling the server, you need to fill some hidden field. At least, that was my case. So, what

At the day-job, we (finally!) get to use Knockout in our old-school WebForms application, albeit on one page to begin with (which is fine; one step at a time). If you’re not familiar with Knockout, check out their site and great documentation. If you have a Pluralsight account, even better! They have an excellent course that will get you started very quickly. Anyway, I came across a situation where I needed to bind a property of my viewmodel to the

If you’re testing your javascript with QUnit, you’ll probably run into the case where you need to initialize variables, objects, … before every test. You’ll want to run every test with the same baseline. In NUnit, you can use the SetUp attribute for this. In QUnit, it’s a little different, but nothing too hard.With the module function, you can group tests and have them run a function before starting each test. The module requires at least a string containing the

Test-driven development has become fairly standard (although not everywhere, and tests aren’t always written first). So, when we set out to build our applications and their features, we dutifully write our tests, run them everytime, yadda-yadda-yadda. Then, when we decide to add some javascript goodness to our web apps, so they feel like native apps, we … sort of end up with giant js-files full of unmaintainable javascript badness. Just like unit tests can drive your design decisions, and help