No it's something you would have to write. Protoype's unloadCache() happens on page unload... we're talking here about a single control being updated (not the whole page). So in a long-running AJAX application, the page itself may never get refreshed, there prototype would never call unloadCache(). This cleanup stuff really needs to be at an atomic per control level to support designing a scalable AJAX application.
I've even gone as far as to create a garbage collector to handle this cleanup on a background process. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maninder, Singh Sent: Thursday, February 23, 2006 9:25 AM To: rails-spinoffs@lists.rubyonrails.org Subject: RE: [Rails-spinoffs] reloading fragments of pages Ryan, Not related to this post, but you bring up a good point here. The dispose() method that you are talking about, is this something available in prototype or do we need to write it? Is it similar to unloadCache()? Doesn't prototype do the cleanups on every subsequent load? Please let me know. Thank you, Mandy. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs The information transmitted in this electronic mail is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs