Angular 2: Some Resources

If you haven’t been living under a rock, then you are well aware that Angular 2 is well on its way forward. While it is in Alpha now and not ready for production use, it is definitely moving ahead fast...

Read More

JavaScript StackTrace

A little help in deciphering JavaScript errors sometimes would be very useful!!! Today after implementing a nice little client-to-server JavaScript exception logging service, I realized having something that resembles a stack trace would be so awesome. Easiest method I found...

Read More

Bundling with SourceURL for Dynamically Loaded Scripts

The Problem In today’s world of large amounts of client side scripts, you may find yourself dynamically loading some of the scripts based on modularity or some other business related requirement. For example, if you give the user the option...

Read More

Meetup: .NET Harmony with EF Code First, ASP.NET Web API, & OData

This week I will be presenting at a local .NET User Group meeting in Barrie, ON (www.northoftoronto.net) some of the efficiency's to be gained out of the latest from Entity Framework Code First, ASP.NET Web API, and OData (and don't...

Read More

Integrating AngularJS in a Tight Spot

Another title for this post might have been “Using AngularJS with ASP.NET Update Panels” as that was the circumstance I found myself in. However, the method of manually bootstrapping AngularJS framework applies to just about any tight spot you would...

Read More

Scrolling an iframe Programmatically

Scrolling a div programmatically is typically very easy, with something like this: $(‘#divid’).scrollTop(400); // scrolls to position 400 of the div vertically So, you figure that it’s the same code for an iframe you have on your page: $(‘iframe’).scrollTop(400); Quickly...

Read More

JavaScript Extensions & JQuery Utilities

Some people cringe at the thought of writing JavaScript. A JavaScript colleague of mine says this to those people: “If you hate JavaScript, then you’re doing it wrong” (Dirty Steve). I can honestly say that I use to write JavaScript...

Read More

JavaScript KeyCodes and Events

When using JavaScript to detect key events in a browser, you find yourself constantly looking up keycodes for different keys. I found this list that contains a decent amount of the keycodes: http://www.cambiaresearch.com/c4/702b8cd1-e5b0-42e6-83ac-25f0306e3e25/Javascript-Char-Codes-Key-Codes.aspx The nice thing about this website is...

Read More

Client Side Table Sorting in JavaScript

Table sorting is a very common polishing feature that you’ll see for most tabular data. In ASP.NET you get functionality with this out of the box with a control like a GridView, but requires a full postback just to sort...

Read More

JavaScript Click Events on Tables

Sometimes it becomes necessary to obtain click events on very large sets of data. For example, my usage involved a very large table, which you could click and edit any cell. This table could potentially be 43 columns and a...

Read More