Monthly Archives: October 2014

Modifying a page using javascript on the fly

http://www.abeautifulsite.net/adding-and-removing-elements-on-the-fly-using-javascript/ Note that browsers tend to have a problem with the remove: the inner string needs to be escaped ‘<a href=”” onclick=”javascript:removeElement(\’file-\’ + fileId + \’\’); return false;”>Remove</a>’;    

Posted in Uncategorized | Leave a comment

Fire Fox Tips

https://developer.mozilla.org/en-US/Add-ons/Overlay_Extensions/XUL_School/Intercepting_Page_Loads    

Posted in Uncategorized | Leave a comment

Getting the executing directory for IIS apps

http://stackoverflow.com/questions/6334992/getting-iis-application-filesystem-path Something along the lines of string apPath = System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPath; or string apPath = System.Web.Hosting.HostingEnvironment.MapPath(“~/folder/file”); Make sure to test for null string incase of running in self host.

Posted in Uncategorized | Leave a comment

Web API Validation

http://www.asp.net/web-api/overview/formats-and-model-binding/model-validation-in-aspnet-web-api

Posted in Uncategorized | Leave a comment

A simple reminder of the simple power of javascript

<html> <head> <title>Slabs of HTML</title> </head> <body> <script type=”text/javascript”> var a = []; var i = 0; a[0] = ” <p>here is paragraph ” + i + “</p>”; a[++i] = ” <p>here is paragraph ” + i + “</p>”; a[++i] … Continue reading

Posted in Uncategorized | Leave a comment