posts tagged * javascript

Make an AJAX call when the user leaves a web page (using onbeforeunload)

29/3/2017

Sometimes you need to send some data to the server before the user leaves your web application. A good example of this is saving data. Instead of giving the user a save button to save the changes he made, the application saves all data if the user navigates away from the page or closes the browser.

read more

Starting a project with Express, node.js and Stylus

29/2/2012

Node.js gets a lot of attention lately, out of curiosity I decided to try it out. After reading the excellent hands-on node e-book I wanted to port one of my pet projects, a price comparer between different IKEA branches (site is offline) written in ASP.Net MVC to node.js. As a web framework I went for Express. In this blog post I’ll show you how you can get Express to generate a very basic app for you and how you can use Stylus in combination with Express.

read more

An alternative to editing JavaScript in Visual Studio: RubyMine

28/1/2010

Unfortunately the images to this post were lost during the migration from Blogengine.Net to WordPress

read more

Compressing and combining files with JavaScriptMVC

18/7/2009

Unfortunately the images to this post were lost during the migration from Blogengine.Net to WordPress

read more

Getting the element that has the focus via JavaScript

11/7/2009

This is one of those things that you only need on very specific occasions. I needed to get the element that has the focus on a page. Went to Google and found the answer somewhere deep into a forumthread. So for future reference here goes:

read more

The MVC in JavaScriptMVC

6/7/2009

Unfortunately the images to this post were lost during the migration from Blogengine.Net to WordPress

read more

Finally found what I have been looking for: JavaScriptMVC

22/6/2009

I’m very passionate about the code I write, and with the coming of jQuery I really began to love Javascript. But the Javascript I wrote was more of the procedural kind. I tried to split it up per page or user control but it still felt bad. For pages with a lot of interaction the JavaScript files grew very quickly over a couple hundred LOC. There is the possibility to split these up, but the problem that then arises is that the browser launches a request for each javascript file. And most (older) browsers have a suprising low amount of simultaneous request (I thought it was around 2 or 3, it was certainly below 5). So each file I added to make my application more maintainable resulted in a slower application. Not a good situation to be in.

read more

Book review: jQuery in Action

6/6/2009

started reading this book about 6 months ago. After reading it half way through I stopped and start reading a newly purchased book. The reason that I stopped reading was because I was excited and impatient to start reading the new book, it’s a problem I have every time I purchase a new book. After finishing some books I realized that jQuery in Action was still lying around, and because the new project I’m working on depends heavily on jQuery, I decided to pick up the book where I left off and finish it.

read more

Sequentially download multiple files (with jQuery)

16/4/2009

Unfortunately the images to this post were lost during the migration from Blogengine.Net to WordPress

read more

Brazilian waxing, choosing a JavaScript framework and why I don’t like ASP.NET AJAX

2/6/2008

Let me first clarify something. As Jan pointed out I am into Brazilian waxing but please, all you pervert guys stop sending me emails with questions about the subject!

read more