imajes.

How image, sound, video and document files actually work — and what it takes to publish them.

Archive since 2003

From the archive. This page was published on imajes.info when the domain carried a personal weblog. It is kept at its original address and reproduced as it was — the opinions and the first person are the original author’s, not this publication’s. More from the archive.

Imajes / Archive / Code · Rails

Weblog archive

Checking Out AJAX generated code

May 11, 2006 · archived entry

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