About this user

Magnus www.mh77.net

« Newer Snippets
Older Snippets »
1 total  XML / RSS feed 

Debugging RJS

<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>
« Newer Snippets
Older Snippets »
1 total  XML / RSS feed