# Page.visual\_effect :highlight not working

**URL:** <https://www.ruby-forum.com/t/page-visual-effect-highlight-not-working/56720>\
**Category:** Rails\
**Created:** [April 3, 2006, 10:42am UTC](https://www.ruby-forum.com/t/page-visual-effect-highlight-not-working/56720 "2006-04-03T10:42:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![boram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/7993a0/32.png) [@boram](https://www.ruby-forum.com/u/boram)\
**Post date:** [April 3, 2006, 10:42am UTC](https://www.ruby-forum.com/t/page-visual-effect-highlight-not-working/56720/1 "2006-04-03T10:42:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![boram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/7993a0/32.png) [@boram](https://www.ruby-forum.com/u/boram)\
**Post date:** [April 3, 2006, 11:04am UTC](https://www.ruby-forum.com/t/page-visual-effect-highlight-not-working/56720/2 "2006-04-03T11:04:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![boram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/7993a0/32.png) [@boram](https://www.ruby-forum.com/u/boram)\
**Post date:** [April 3, 2006, 11:10am UTC](https://www.ruby-forum.com/t/page-visual-effect-highlight-not-working/56720/3 "2006-04-03T11:10:13Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![boram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/7993a0/32.png) [@boram](https://www.ruby-forum.com/u/boram)\
**Post date:** [April 3, 2006, 11:12am UTC](https://www.ruby-forum.com/t/page-visual-effect-highlight-not-working/56720/4 "2006-04-03T11:12:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![boram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/7993a0/32.png) [@boram](https://www.ruby-forum.com/u/boram)\
**Post date:** [April 11, 2006, 7:08am UTC](https://www.ruby-forum.com/t/page-visual-effect-highlight-not-working/56720/5 "2006-04-11T07:08:39Z")

</div>

Are you getting any javascript errors?

-Simon
