Skip to content

Instantly share code, notes, and snippets.

View SebaVDP's full-sized avatar

Sébastien Van De Poel SebaVDP

View GitHub Profile
@studgeek
studgeek / fiddle.html
Created September 13, 2011 16:30
knockout autocomplete
<input data-bind="jqAuto: { autoFocus: true }, jqAutoSource: myPeople, jqAutoValue: mySelectedGuid, jqAutoSourceLabel: 'displayName', jqAutoSourceInputValue: 'name', jqAutoSourceValue: 'guid'" />
<hr/>
<div data-bind="text: mySelectedGuid() ? mySelectedGuid() : 'None selected'"></div>
<hr/>
For testing setting the model value elsewhere:
@benfoxall
benfoxall / gist:1753574
Created February 6, 2012 17:40
A function for converting .NET dates in json responses
/*!
* $.convertJSONDates
*
* $.getJSON(…).pipe($.convertJSONDates).done(function(data){…})
*
* Based on …
*
* jQuery.parseJSON()
* http://erraticdev.blogspot.com/2010/12/converting-dates-in-json-strings-using.html
*