Page.visual_effect :highlight not working

I just upgraded Ruby to 1.8.4 and Rails to 1.1 and I’m in the middle of
changing my Javascript code over to the Scriptaculous helper functions.

page.visual_effect :highlight, “some_div” seems to be broken. Instead
of fading, the background color of the element stays highlighted.
page.visual_effect works for other effects, though. Any ideas?

Thanks.

Boram Y. wrote:

I just upgraded Ruby to 1.8.4 and Rails to 1.1 and I’m in the middle of
changing my Javascript code over to the Scriptaculous helper functions.

page.visual_effect :highlight, “some_div” seems to be broken. Instead
of fading, the background color of the element stays highlighted.
page.visual_effect works for other effects, though. Any ideas?

Thanks.

Are you trying it with IE. I have the same issues with many RJS helpers
in IE. They work fine in anyother browser but IE. The page.replace_html
only works with DIVs not another element with an ID.

James W. wrote:

Are you trying it with IE. I have the same issues with many RJS helpers
in IE. They work fine in anyother browser but IE. The page.replace_html
only works with DIVs not another element with an ID.

No, this is in Firefox.

Boram Y. wrote:

James W. wrote:

Are you trying it with IE. I have the same issues with many RJS helpers
in IE. They work fine in anyother browser but IE. The page.replace_html
only works with DIVs not another element with an ID.

No, this is in Firefox.

And this problem also occurs in IE.

Are you getting any javascript errors?

-Simon