Re: [Rails-spinoffs] using dynamic element ids with visual_effect

2006-01-10 Thread Andrew Kaspick
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? > > > > > > J

Re: [Rails-spinoffs] using dynamic element ids with visual_effect

2006-01-10 Thread Jeremy Kitchen
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 >

Re: [Rails-spinoffs] using dynamic element ids with visual_effect

2006-01-10 Thread Andrew Kaspick
Can you paste some of the generated html? On 1/10/06, Dave Thomas <[EMAIL PROTECTED]> 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 PROTEC

Re: [Rails-spinoffs] using dynamic element ids with visual_effect

2006-01-10 Thread Dave Thomas
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) an

Re: [Rails-spinoffs] using dynamic element ids with visual_effect

2006-01-10 Thread Andrew Kaspick
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 h

[Rails-spinoffs] using dynamic element ids with visual_effect

2006-01-10 Thread Dave Thomas
Mike and I demo an Ajaxified version of the Depot application in the Rails Studio. Part of the demo is a cart in the sidebar which updates when you add a product to it. As well as updating the div, it also highlights the most recently added link item. Right now, we do it with: fu