Kenneth Truyers
user

Kenneth Truyers

.NET developer at Appyparking, Pluralsight Author and Microsoft MVP


Tagjavascript
Featured

best practices development javascript patterns

Javascript Namespaces and Modules

Posted on .

Namespaces In most programming languages we know the concept of** namespaces (or packages)**.****Namespaces allow us to group code and help us to avoid name-collisions. In c# for example you have this declaration namespace MyNameSpace { public class MyClass {…

Featured

best practices development javascript patterns

Javascript hoisting explained

Posted on .

Often I see problems arise when people try to tackle Javascript. Taking a certain behavior for granted can get them frustrated. Javascript has little differences but they can cause unexpected results if not taken into account. One of those differences is the…

Featured

javascript

JavaScript: Private variables

Posted on .

The first thing you often hear when talking about JavaScript is often “JavaScript doesn’t have visibility modifiers, hence it doesn’t support private variables”. This is only valid for 50%, because JavaScript indeed doesn’t have visibility modifiers (public, p…

Featured

javascript

JavaScript: More powerful than you might think

Posted on .

So many times I have heard complaints about the flaws of JavaScript. Many people say it’s a kiddy language, it’s error prone, it’s a pain to work with and it lacks all of the good stuff that we have in strong-typed languages such as Java and .NET. But I disagr…

Featured

asp.net javascript jQuery

Elegant web forms: wrap up and example

Posted on .

To conclude the series on elegant web forms, I will walk you through a full example of a simple company and contact management tool. The app in itself doesn’t do much, but it serves to illustrate the points mentioned in the previous posts. [![elegant_web_forms…

Featured

asp.net javascript jQuery templates

jQuery Templates and ASP.NET User Controls

Posted on .

After my previous article, where I showed you how to use user controls as views, in this post I will show you how to mix in some jQuery templating. The jQuery templates plugin is basically a way to make views in JavaScript, much like we did with the user contr…

Featured

asp.net javascript jQuery JSON Web Services

AJAX with jQuery and web services

Posted on .

In this post I will show you how you can use jQuery to call ASP.NET web services (.asmx). Some people prefer to use page methods, but I find it nicer to group all my AJAX-related calls in one web service. That service then serves as a façade to the inner worki…

Featured

asp.net javascript jQuery

Useful Javascript extensions

Posted on .

In my previous post I added the extensions.js-file to my JavaScript library. I did this because I feel there are some things that I often do and I abstracted them out to a kind of library on top of jQuery. I will walk you through the different functions it off…