Fork me on GitHub

Achieving Named Lock / Locker functionality in C# 4.0 18

I was recently writing some code to implement a file system cache for streams and came across an interesting dilemma: how do I lock around a file that is being created by ThreadA until it is ready to be accessed by ThreadB? This is not a classic producer/consumer problem as you might be thinking: Any ...

A jQuery UI Dialog “open” performance issue and how to fix it 12

jQuery UI is a great way to get good looking, feature packed sites up and running ASAP.  It doesn’t come without it’s costs sometimes though, especially if you use it right out of the box. I recently discovered and interesting issue in jQuery UI surrounding the performance of creating a dialog with a large amount ...

jQuery File Download v1.3.0 released with mobile browser support 3

Mobile browser support I have toiled through mobile cross browser inconsistancies (and you thought IE 6 was bad) to support both iOS and Android*! Other mobile browsers may work as well but I am unable to test them. Let me know if you find a bug or go fix it! Added mobile support: iOS 5.0 ...

jQuery File Download v1.2.0 Released and on GitHub 8

Updates jquery.fileDownload.js source Demo of jQuery File Download in action using MVC 3 Changelog Available on GitHub, bring on the pull requests if you are interested in contributing! Update background Per the request of several jQuery File Download users and to make jQuery File Download far as useful as possible I have added the ability ...

jQuery File Download v1.1.0 Released 7

The Basics Updated: Original post jquery.fileDownload.js source Demo of jQuery File Download in action using MVC 3 Changelog Whats new? In order to make jQuery File Download a little bit easier to use for a rich user experience (jQuery UI required) I have added some additional “options” arguments. These options arguments create a jQuery UI ...

jQuery File Download Plugin for Ajax like, feature rich file downloads 282

jquery.fileDownload.js Library jQuery File Download is a cross server platform compatible jQuery plugin that allows for an Ajax-like file download experience that isn’t normally possible using the web. Demo of jquery.fileDownload.js in action with some different examples Example VS2010 MVC 3 application using jquery.fileDownload.js GitHub – Send me a pull request! Download jquery.fileDownload.js v1.2.0 – ...

Ajax.BeginForm AjaxOptions custom arguments for OnComplete, OnSuccess, OnFailure and OnBegin 6

Some interesting behavior I noticed recently about the Microsoft MVC 3 jQuery library jquery.unobtrusive-ajax.js is the ability to pass you own arguments into the handler. Normally you have probably used it like this: C# @using (Ajax.BeginForm(new AjaxOptions{OnComplete = "DefaultEditOnComplete"})) { //Person data and submit button } 123456  @using (Ajax.BeginForm(new AjaxOptions{OnComplete = "DefaultEditOnComplete"})){    //Person data and submit ...