Today I was in the middle of porting some raw javascript over to TypeScript as well as moving inline javascript into separate classes. In the middle of doing this I started to run into some really odd stuff. Namely, the ‘this’ context in one of my methods was set to window, not to the parent...
When working on a demo application recently I was trying to get an ajax call to hit one of my Web API routes and I was immediately hit with the following exception. XMLHttpRequest cannot load http://localhost:33884/api/ToDo/ . Origin http://localhost:3462 is not allowed by Access-Control-Allow-Orig Of...
As I was breaking out some of my MVC controllers to use Web Api I ran into a not so fun error (seen below) when doing a jQuery Post. I was trying to post a model via jQuery to my Web Api Endpoint and it was failing and it made no sense because when I used Postman via Chrome it would work just fine. ...
Today I added a reference to jQuery UI via Nuget to the rewrite of the Dimecasts.net website and as soon as I launched the site locally I was presented with the following dialog: Now given the fact that the ONLY change to my code base was adding the scripts to my scripts folder as well as adding the...
Do you like JavaScript? Have you been looking for a reaon or an idea to learn and start using HTML5? Google Chrome extesions are a great way to get into HTML5 and all its new APIs with bite sized applications. Anatomy of a Chrome Extension A Chrome extesion is nothing more than a tiny website that runs...