JQuery each loops and performance

In a project where I am one of the developers we had JavaScript code that was really slow. I started to analyze the code and I found out that we had a lot of jQuery each loops in the code. I thought that they could be a big part of the performance issue. I tried […]

  3/26/2014 - 3:33 PM

TypeScript will not compile on save in Visual Studio 2013

It seems that many having problem that TypeScript not will auto compile on save in Visual Studio 2013. TypeScript was earlier a part of the Web Essentials extension, but it is not included anymore. So the first step is to ensure that the TypeScript plugin is installed, if not it is available for download here, http://www.microsoft.com/en-us/download/details.aspx?id=34790. If […]

  2/18/2014 - 1:05 PM

Get coordinates from photo with JavaScript

When you take a photo with your mobile phone, photos will be geotagged. This information could be used for to show on a map where the photo is taken. This post will show you how to read this information with HTML5 and JavaScript. To help me with this I using to external librarys written by […]

  11/26/2013 - 12:37 PM

Back button and tabs in Bootstrap

If you are using the tabs component in Twitter Bootstrap and want to navigate to a specific tab when the browsers back button is pressed you can use the onhashchange event to detect when the button is pressed. The code example below is navigating back to first tab when back button is pressed. In the example […]

  11/19/2013 - 8:50 AM

Real time communication with signalR

If you need realtime communication and don’t want to use long polling ajax calls for example for an game or a chat and also want fallback if WebSockets not is supported, signalR is a good library. This is a short tutorial on how to use signalR in an ASP.NET MVC application. If you want to […]

  7/12/2013 - 10:37 AM

Poco2Js

We have started to develop a web version of WordRoom. We will use web socket to communicate with our backend. All messages (POCOs) that is used in our versions of WordRoom is written in C#. We don’t want to rewrite all messages to JavaScript for use with web sockets. To solve this problem we created […]

  4/2/2013 - 12:00 PM