Format:
Recent snippets matching tags of json
// JavaScript Code $().ready(function () { ajaxCallMethod("CallbackHandler.ashx?", "GetDate", [{ Name: "Rick", Entered: new Date(2012,0,1) }], function (result) { alert(result); });
189 Views
no comments
ajaxCallMethod("CallbackHandler.ashx?", "Test", [{ Entered: "03/15/2010", Name: "Rick"}], function (result) { alert(result); }); ajaxCallMethod("CallbackHandler.ashx?", "Test", [{ Entered: new Date(2010,2,15), Name: "Rick"}], function (result) { alert(result);
153 Views
no comments
using System; using System.Net.Http.Formatting; using System.Threading.Tasks; using System.Web.Script.Serialization; using System.Json; using System.IO; namespace Westwind.Web.WebApi {
839 Views
no comments
/* Google jquery CDN <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> */ $.ajax( { type: "POST", contentType: "application/json; charset=utf-8", url: "services/FeedService.svc/ServiceMethod", data: '{"param1":"data1" , "param2":"data2"}',
186 Views
no comments
/// <reference path="jquery.js" /> /* ServiceProxy.js Version 0.981 - 4/5/11 (c) 2008-2011 Rick Strahl, West Wind Technologies www.west-wind.com Load json2.js before this library
5627 Views
no comments
if (JSON && !JSON.parseWithDate) { var reISO = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/; var reMsAjax = /^\/Date\((d|-|.*)\)[\/|\\]$/; JSON.parseWithDate = function(json) { /// <summary> /// parses a JSON string and turns ISO or MSAJAX date strings /// into native JS date objects /// </summary>
1479 Views
no comments
[TestClass] public class DateConversionTests { public DateConversionTests() { } [TestMethod]
1164 Views
no comments
Subscribe
Discuss
News
About
New Snippet
Recent Snippets
My Snippets
Favorites
Web Code
Search