Imajes / Archive / Code · Rails
Weblog archiveChecking Out AJAX generated code
Often times when you are generating html code and injecting it into a page, you can't always see what code has been generated by your backend machinations. The following snippet of code will enable you to have a button on the page which, when clicked, will reveal the code of the element you're debugging. Requires the prototype library.
Update: This may also be useful - AJAX Spy
ajax rails javascript html
Elsewhere in the archive