Page.visual_effect :highlight not working


#1

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.


#2

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.


#3

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.


#4

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.


#5

Are you getting any javascript errors?

-Simon