evalScripts is set to true by default using the rails helpers
On 1/10/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote: > On Tuesday 10 January 2006 09:27, Dave Thomas wrote: > > On Jan 10, 2006, at 10:43 AM, Andrew Kaspick wrote: > > > Can you not add the code in your display_cart view? > > > > > > Just put something like <%= visual_effect :highlight, > > > 'cart_item_'[EMAIL PROTECTED] %> in the display_cart template (maybe > > > add some logic to only perform the effect if it's a xhr request) and > > > since rendering of that view is essentially going to happen when the > > > request is complete it should accomplish the same thing no? > > > > You'd _think_ that'd work... but I don't seem to be able to. The > > generated HTML looks OK, but the effect never triggers. > > don't you need to tell prototype to evaluate scripts on the way back? > > I'm not sure how exactly this is done in the rails helper functions, but in > prototype it's something like this: > > var myAjax = new Ajax.Updater('id', 'url', {method: 'get', evalScripts: > true}); > > -Jeremy > > -- > Jeremy Kitchen ++ [EMAIL PROTECTED] > > In the beginning was The Word and The Word was Content-type: text/plain > -- The Word of Bob. > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs