Hi everyone,
I'm working with rails 2.1.1 and i'm in trouble with the scriptaculous
helper.
I have something like :
<%= link_to_function "Details" do |page|
page['toto'].visual_effect(:toggle_blind)
end %>
<div id="toto">
Bouh
</div>
Which generates :
<a onclick="try { $("toto").visualEffect("toggle_blind"); } catch (e) {
alert('RJS error:\n\n' + e.toString());
alert('$(\"toto\").visualEffect(\"toggle_blind\");'); throw e }; return
false;" href="#">Details</a>
<div id="toto"> Bouh </div>
When i click it under firefox, I get the error :
RJS error:
TypeError: Effect[klass] is not a constructor
I get approximatively the same error on safari.
Does anyone see what's the problem ?
Thanks
Olivier
--
Posted via http://www.ruby-forum.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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---