BTW, There is a unique div with ID "inline-help" in my document.
Thanks in advance,
Al
Altu 59 wrote:>
> 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
>
-----
Regards
Altu
--
View this message in context:
http://www.nabble.com/RJS-TypeError-tf4928414.html#a14106137
Sent from the RubyOnRails Users mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---