RJS TypeError

Hi all,

When I execute the following RJS code:

<pre>
page['inline-help'].style.color = "'#ff0000'"
</pre>

I get this error:

<pre>
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]

]
</pre>

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

Thanks in advance,
Altu

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

Thanks in advance,
Al

Altu 59 wrote: