First, include Prototype.exec from the patch. Second, replace Ajax.Updater with Ajax.Request:
new Ajax.Request('example.com', { onSuccess: function(r) { // extract scrtips and evaluate them in a global scope r.responseText.extractScrtips().map(Prototype.exec); // update container with remaining content $('someContainer').update(r.responseText.stripScripts()); } }) Best, kangax On Apr 13, 5:50 pm, joho <[EMAIL PROTECTED]> wrote: > Hmm.. indeed. Interesting. > > Thanks for the response! > > What's really odd is that it works in some other places.. and I cannot > quite see a difference in the constructs I use. > > So I naturally wonder what I'm doing different that could "offend" the > powers that be and generate this "failure". > > I've only looked at the exec() briefly, but how would I use it .. > instead of my Ajax.Updater call, or where I process the response? > > -joho > > On Apr 13, 11:36 pm, kangax <[EMAIL PROTECTED]> wrote:> This might be a > scoping problem. Take a look at this > patch:http://dev.rubyonrails.org/ticket/11423 > > > - kangax --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---