{"id":276,"date":"2010-03-16T00:48:55","date_gmt":"2010-03-15T22:48:55","guid":{"rendered":"http:\/\/kinsey.no\/blog\/?p=276"},"modified":"2010-03-16T02:18:31","modified_gmt":"2010-03-16T00:18:31","slug":"the-upcoming-release-of-easyxdm-v2-0","status":"publish","type":"post","link":"https:\/\/kinsey.no\/blog\/index.php\/2010\/03\/16\/the-upcoming-release-of-easyxdm-v2-0\/","title":{"rendered":"The upcoming release of easyXDM v2.0"},"content":{"rendered":"<p>Major improvements has been added to the project and I am proud to soon be\u00a0able to release version 2.0, a release that features a new and simpler API,\u00a0and a stack approach that is highly customizable when it comes to adding new\u00a0features.<\/p>\n<p>I would really love to get some feedback on the current state before\u00a0releasing\u00a0the new version, so as to make it as successful as possible, and so I turn to you.<\/p>\n<p>Please, take a look at the repository at\u00a0<a href=\"http:\/\/github.com\/oyvindkinsey\/easyXDM\" target=\"_blank\">http:\/\/github.com\/oyvindkinsey\/easyXDM\/<\/a>, view the new documentation at\u00a0<a href=\"http:\/\/easyxdm.net\/v2.0.0\/docs\/\" target=\"_blank\">http:\/\/easyxdm.net\/v2.0.0\/docs\/<\/a>, run the\u00a0tests at\u00a0<a href=\"http:\/\/easyxdm.net\/v2.0.0\/tests\/\" target=\"_blank\">http:\/\/easyxdm.net\/v2.0.0\/tests\/<\/a> or download the code at\u00a0<a href=\"http:\/\/easyxdm.net\/v2.0.0\/source.zip\" target=\"_blank\">http:\/\/easyxdm.net\/v2.0.0\/source.zip<\/a>, and if you\u00a0feel\u00a0like it, give me some feedback either on this mailing list, or as an <a href=\"http:\/\/github.com\/oyvindkinsey\/easyXDM\/issues\">Issue\u00a0at\u00a0Github<\/a>.<br \/>\nSome of the new features planned can be viewed at\u00a0<a href=\" http:\/\/wiki.github.com\/oyvindkinsey\/easyXDM\/planned-features\">http:\/\/wiki.github.com\/oyvindkinsey\/easyXDM\/planned-features<\/a>, and I&#8217;ll continue to update this list as new ideas show up.<\/p>\n<p>By the way, moving to the new API is really simple and only requires a few\u00a0small changes &#8211; this is all shown in the examples.<\/p>\n<p>And to show one of them, here is the new <a href=\"http:\/\/easyxdm.net\/v2.0.0\/example\/xhr.html\">xhr.html sample<\/a>, which shows how to use the easyXDM.Rpc (the old Interface class) together with the bundled <a href=\"http:\/\/easyxdm.net\/v2.0.0\/xhr.html\">xhr.html<\/a> document.<\/p>\n<p><!--more--><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nvar xhr = new easyXDM.Rpc({\r\n    local: &quot;..\/hash.html&quot;,\r\n    remote: remoteUrl + &quot;\/..\/xhr.html&quot;,\r\n    remoteHelper: remoteUrl + &quot;\/..\/hash.html&quot;\r\n}, {\r\n    remote: {\r\n        post: {}\r\n    }\r\n});\r\n<\/pre>\n<p>This will give you an instance of <a href=\"http:\/\/easyxdm.net\/v2.0.0\/docs\/?class=easyXDM.Rpc\">easyXDM.Rpc<\/a> that exposes a method quite similar to the one many frameworks use for doing AJAX calls&#8230;<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nxhr.post(&quot;example\/glossary.php&quot;, {\r\n    param1: &quot;a&quot;,\r\n    param2: &quot;b&quot;\r\n}, function(json){\r\n    alert(json.glossary.title);\r\n});\r\n<\/pre>\n<p>.. and hey presto, you have cross-domain AJAX without the inherent security issues that other approaches like JSONP has.<br \/>\nBy the way, if anybody wants to contribute (as some has started to) feel free to do\u00a0so!<br \/>\nWhat the project needs the most is a decent logo, a proper website (maybe something\u00a0like\u00a0<a href=\"http:\/\/www.dotnetopenauth.net\/\" target=\"_blank\">http:\/\/www.dotnetopenauth.net\/<\/a>) and to have the documentation extended\u00a0with samples etc like the ones at\u00a0<a href=\"http:\/\/www.extjs.com\/deploy\/dev\/docs\/?class=Ext.form.ComboBox\">http:\/\/www.extjs.com\/deploy\/dev\/docs\/?class=Ext.form.ComboBox<\/a> .<\/p>\n<p>Also, if you want to stay up to date on new releases, ask questions \u00a0etc. then there is now a new google group created for this at <a href=\"http:\/\/groups.google.com\/group\/easyxdm\">http:\/\/groups.google.com\/group\/easyxdm<\/a><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Major improvements has been added to the project and I am proud to soon be\u00a0able to release version 2.0, a release that features a new and simpler API,\u00a0and a stack approach that is highly customizable when it comes to adding new\u00a0features. I would really love to get some feedback on the current state before\u00a0releasing\u00a0the new [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[56],"tags":[6,35,33,8,60,61],"_links":{"self":[{"href":"https:\/\/kinsey.no\/blog\/index.php\/wp-json\/wp\/v2\/posts\/276"}],"collection":[{"href":"https:\/\/kinsey.no\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinsey.no\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinsey.no\/blog\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsey.no\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=276"}],"version-history":[{"count":6,"href":"https:\/\/kinsey.no\/blog\/index.php\/wp-json\/wp\/v2\/posts\/276\/revisions"}],"predecessor-version":[{"id":281,"href":"https:\/\/kinsey.no\/blog\/index.php\/wp-json\/wp\/v2\/posts\/276\/revisions\/281"}],"wp:attachment":[{"href":"https:\/\/kinsey.no\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kinsey.no\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsey.no\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}