Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<script type="text/javascript"> dojo.addOnLoad(function() { var kw = { url: "JSONServlet", content: { data_manager: "accordion", insurance_kind: "oms" }, handleAs: "text", load: function(response) { var aContainer = dijit.byId("leftAccordion"); var responseObj = dojo.fromJson(response); dojo.forEach(responseObj.items, function(item, index){ aContainer.addChild(new dijit.layout.ContentPane({ title: item.name })); } ); aContainer.startup(); return response; }, error: function(error) { alert(error); }, mimetype: "text/json" } dojo.xhrPost(kw); //dojo.stopEvent(e); }); </script>
This paste will be private.
From the Design Piracy series on my blog: