On 4/28/06, Will Merydith
<will.rails-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> In my RJS template this works:
>
> page.visual_effect :highlight, "test#{@test.id}", {:duration
=> 5}
>
> but not this:
>
> page.visual_effect :highlight, " test#{@test.id}", {:duration
=> 5,
> :startcolor => "#FFFFFF"}
IIRC, you need to pass the value of startcolor (and other string
parameters for js functions) with an additional set of single-quotes
surrounding them:
page.visual_effect :highlight, "test#{@test.id}", {:duration => 5,
:startcolor => ''"#FFFFFF"''}
Dave
--
Dave Goodlad
dgoodlad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org or
dave-eHfbeeWWzZOw5LPnMra/2Q@public.gmane.org
http://david.goodlad.ca/