# RJS TypeError

**URL:** <https://www.ruby-forum.com/t/rjs-typeerror/121831>\
**Category:** Rails\
**Created:** [December 1, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/rjs-typeerror/121831 "2007-12-01T15:57:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Altu\_59](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e9c0ed/32.png) [@Altu\_59](https://www.ruby-forum.com/u/Altu_59)\
**Post date:** [December 1, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/rjs-typeerror/121831/1 "2007-12-01T15:57:03Z")

</div>

Hi all,

When I execute the following RJS code:

```
page['inline-help'].style.color = "'#ff0000'"
```

I get this error:

```
RJS error:

[Error:
name: TypeError
message: Statement on line 4: The Object does not implement [[Call]]
Backtrace:
  Line 4 of eval script
    $("inline-help").style().color = "'#ff0000'";
  Line 940 of linked script
http://localhost:3000/javascripts/prototype.js?1196511586
    this.evalResponse();
  Line 881 of linked script
http://localhost:3000/javascripts/prototype.js?1196511586
    this.respondToReadyState(this.transport.readyState);
  Line 71 of linked script
http://localhost:3000/javascripts/prototype.js?1196511586
    return __method.apply(object, args.concat($A(arguments)));
  At unknown location
    [statement source code not available]

]
```

Any ideas what is probably causing this and how I can fix it?

Thanks in advance,  
Altu

* * *

## Regards Altu

View this message in context:  
[http://www.nabble.com/RJS-TypeError-tf4928414.html#a14105937](http://www.nabble.com/RJS-TypeError-tf4928414.html#a14105937)  
Sent from the RubyOnRails Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![Altu\_59](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e9c0ed/32.png) [@Altu\_59](https://www.ruby-forum.com/u/Altu_59)\
**Post date:** [December 1, 2007, 4:08pm UTC](https://www.ruby-forum.com/t/rjs-typeerror/121831/2 "2007-12-01T16:08:44Z")

</div>

BTW, There is a unique div with ID “inline-help” in my document.

Thanks in advance,  
Al

Altu 59 wrote:

> Line 940 of linked script
> 
> ]
> 
> Any ideas what is probably causing this and how I can fix it?
> 
> Thanks in advance,  
> Altu

* * *

## Regards Altu

View this message in context:  
[http://www.nabble.com/RJS-TypeError-tf4928414.html#a14106137](http://www.nabble.com/RJS-TypeError-tf4928414.html#a14106137)  
Sent from the RubyOnRails Users mailing list archive at [Nabble.com](http://Nabble.com).
