I''m just getting up and running with rails, but I''m pretty sure I''m using the scriptaculous library correctly. However, when I try to call an effect I get and endless loop of these errors... Undefined Value line 486 I''m using these libraries... <%= javascript_include_tag "prototype" %> <%= javascript_include_tag "controls" %> <%= javascript_include_tag "effects" %> and calling like so: <div id="testDiv" onclick="new Effect.Scale(self,.5)"></div> -- Posted via http://www.ruby-forum.com/.
Todd S. wrote:> Undefined Value line 486 > > <div id="testDiv" onclick="new Effect.Scale(self,.5)"></div>^ Did you mean to write "this"? ________________| -- We develop, watch us RoR, in numbers too big to ignore.
Mark Reginald James wrote:> Did you mean to write "this"? >Thanks for the extra set of eyes. No, I meant to write "this" instead of "self". And that''s exactly where the error is. Switching this fixes the problem. Sorry for the red herring. -- Posted via http://www.ruby-forum.com/.
Possibly Parallel Threads
- Scriptaculous and Photo Flipper a la TagWorld?
- Bug? In scriptaculous -- double text drawn one pixel off
- comparing ajax.updater div in js
- Scriptaculous insertion fails when XHTML Strict used in FireFox
- I can not get any scriptaculous effects to finish with items visible