Thanks Bryan - we are using Prototype on this project, I will see if I can get it working. Cheers!
On Jun 22, 3:55 pm, Bryan Larsen <[email protected]> wrote: > I solved that problem in hobo-jquery by monkey patching Element.update. > Perhaps not the best way to do it, but it seems to work well. > > Function.prototype.hjq_chain = function(f) { > var that=this; > return function() { > var r=that.apply(this, arguments); > if(f) { > r=f.apply(this, arguments); > } > return r; > } > > }; > > // the Hobo part mechanism uses Element.update to do it's work > Element.update = Element.update.hjq_chain(function(id, content) { > if(!id.nodeType) id="#"+id; // assume it's a string > hjq.initialize.apply(jQuery(id)); > > }); > > Bryan > > adamski wrote: > > update on the situation: realised that what is really needed is > > evalscripts as there are other blocks within certain tags that need to > > be executed when the parts are updated on the page. > > > On Jun 22, 3:05 pm, adamski <[email protected]> wrote: > >> I am trying to set up a call to a JS function using onComplete with a > >> Hobo.ajaxRequest. > > >> The function is getting called, however, its before the request is > >> completed! > >> What I need is for the function to be called once the call is made and > >> the part has been updated. > > >> I have tried also including the call in a <script> tag within the tag > >> that renders the part. But that does not seem to be getting called, > >> even with an evalscipts=true in there (I'm not sure if this is part of > >> the Hobo.ajaxRequest?) > > >> Any help/pointers much appreciated! > > >> Cheers > >> Adam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
