Hi guys, The Prototype Insertion classes have been marked as deprecated in version 1.6.0. The part of the updateContent function that deals with insertion currently looks like this.
if (options.insertion) { if (Object.isString(options.insertion)) { var insertion = { }; insertion[options.insertion] = responseText; receiver.insert(insertion); } else options.insertion(receiver, responseText); } I'm not sure whether the "else" option has been provided solely for backwards compatibility or whether it was intended to also allow custom insertion functions. The Prototype API documentation makes no mention of using it in this way. Either way, I'd like this option to stay. I've found that it is the only clean way to reliably perform a scriptaculous effect before the content is replaced. I've successfully used this technique to do one effect before and one effect after the content is replaced. Using effect queues, as suggested in http://dev.rubyonrails.org/ticket/2620, is not sufficient because even though this separates the effects, it does not prevent Prototype from replacing the content before the first effect has completed. The Rails helpers need to be updated to at least deal with the deprecation issue so I've filed a ticket about both issues at http://rails.lighthouseapp.com/projects/8994/tickets/83. DHH hastily closed it because he thought it was solely a Prototype issue but I'll get it reopened once I know whether the "else" option I mentioned above is staying or not. Regards, James --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---