Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Debugging RJS (See related posts)

<script>
Ajax.Responders.register({
  // log the beginning of the requests
  onCreate: function(request, transport) {
    new Insertion.Bottom('debug', '

[' + new Date().toString() + '] accessing ' + request.url + '

') }, // log the completion of the requests onComplete: function(request, transport) { new Insertion.Bottom('debug', '

http status: ' + transport.status + '

' + '<pre>' + transport.responseText.escapeHTML() + '</pre>') } }); script>
</div>

You need to create an account or log in to post comments to this site.


Related Posts