I have a JavaScript-based timeline which needs to use data from an SQL server. The queries and the JSON conversions have been worked out in the form of C#.NET functions with
This is how I do it with jQuery
$.getJSON("MyAction" { Data: somedata}, function(data) { // do stuff on callback });