Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Michael Lee Presentatin Cross Domain Json

  • Login to see the comments

Michael Lee Presentatin Cross Domain Json

  1. 1. Cross-domain, Client-side JSON Exchange by Michael Lee
  2. 2. What is jsonXD? Declarative JavaScript with JSON-like syntax.
  3. 3. Cross-domain JSON with /* Target data */ { “ test ” : “jsonXD Works!” }
  4. 4. // 1: Add data listener: +{ on : { test: function (result) { // 4: Display data: alert (result.data. test ); }}}; // 1: Add data listener: + { on : { test : function (result) { // 4: Display data: alert (result.data.test); }}}; // 2: Request data from JSON/P server: + { get : “ http://ser.ver.b/data.js ?callback= ~ ” }; // 2: Request data from jsonXD server: + { get : “ http://ser.ver.b/data.js ” }; Cross-domain JSON with ser.ver.a (client) ser.ver.b (server) // 3: Server returns JSON/P: ~( { “ test ”: "jsonXD Works!" } ) ; // 3: Server returns jsonXD: + { “ test ”: "jsonXD Works!" };
  5. 5. Works Where?
  6. 6. Please complete an evaluation Michael Lee http://iskitz.com/ Follow me @iskitz on Twitter jsonXD http://jsonxd.net/ Follow @jsonxd on Twitter ajile Ajile http://ajile.net/ Follow @ajilenet on Twitter

×