Adam K Dean

Posts

Cloning objects in JavaScript

Published 22 November 2013 in archive with tags javascript , jquery Just a quick snippet post today. Continue reading …

Invoke callbacks with unknown arguments

Published 14 November 2013 in archive with tags javascript Whilst working on some instrumentation code, I had need to pass a function and an unknown number of arguments to another function which would then time the execution of that function. This turned out to be quite easy using fn.prototype.apply. Continue reading …

No MediaTypeFormatter is available

Published 24 October 2013 in archive with tags aspnet , webapi You may have come across the error message No MediaTypeFormatter is available to read an object of type T from content with media type 'text/plain'. during your adventures in ASP.NET Web API. Tonight it was my turn to be faced with this bothersome little 'issue'. Continue reading …

Enable AngularJS HTML5 Routing on IIS

Published 18 September 2013 in archive with tags urlrewrite , angular , iis AngularJS has the ability to use HTML5 routing, which means that rather than having your application using a hash (#) sign and then the route, it can instead get rid of the hash and still function as a Single Page Application. For example: Continue reading …

Enable cross-origin resource sharing (CORS) in IIS

Published 18 September 2013 in archive with tags iis , webapi , cors , webconfig If you're hosting your API on a different domain to your app, such as api.domain.com, you may be hitting into some cross-origin request roadblocks. In IIS, this is pretty easy to fix -- or well -- disable. Continue reading …



Newer Page 25 of 42 Older