I've created a login form using rails 3 & jquery-ujs and all is working
except I'd like to detect whether the AJAX call to the server was
successful, for example in the event that internet connection is lost.

I'm using form_for but digging through the docs doesn't seem to have
anything to help with this.

My current tag looks like...
<%= form_for @user_session, :remote => true, :html => { :onsubmit =>
"displayProcessing()" } do |f| %>

I've tried adding :success and :failure but these don't seem to work.

Could anyone give me any pointers?

Cheers, Phil
-- 
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.

Reply via email to