Hey so here is my code:
<% if @error == true %>
<%= javascript_tag "New Effect.Shake(''form_holder'');
return false;" %>
<% end %>
I know that the scriptaculous library is being included in the head of
my view, but for some reason the effect never works. Im using the effect
to notify the user that their login was incorrect, hence the @error
variable. That variable is set in my session creating action and upon an
incorrect login the new action is rendered (there is nothing inside this
action). However, when i make an incorrect login and the new action is
rendered, the source code contains the javascript, just nothing happens!
Many thanks,
jakx.12
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.