Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
IN PAGE <script type="text/javascript"> $(document).ready(function() { loadRankDetails(); }); </script> IN APPLICATION.JS function loadRankDetails() { var formNode = document.getElementById("bulk_edit_ranks_form"); //$.ajax({data:$.param($(this).serializeArray()) + '&authenticity_token=' + encodeURIComponent('82f4b06c69f0a622c1b645be3c986ca45ae0a281'), dataType:'script', type:'post', url:'/troop/bulk_edit_get_something'}); return false; $.ajax( {data:$.param($(formNode).serializeArray()) + '&loadDetails=true', dataType:'script', type:'get', url:'/troop/bulk_edit_ranks' } ); return false; }
This paste will be private.
From the Design Piracy series on my blog: