I have a form that allows the user to enter membership info. If the
membership is a good one, it is allowed, but if not a prompt incates
that it was bad. After you click ok on that prompt, a try catch error
appears in the div that get updated when the user enters correct info
try { alert("Invalid Membership Number");
Element.update("add_airline_table", " "); } catch (e) {
alert(''RJS
error:\n\n'' + e.toString()); alert(''alert(\"Invalid
Membership
Number\");\nElement.update(\"add_airline_table\", \"
\");''); throw e }
The code is pretty straight forward:
render :update do |page|
page.alert "Invalid Membership Number"
end
I''m trying to figure out how to stop this behavoir. Another thing is
that, in my form I have an :update hash which updates the div where this
error appears. Basically, the div gets only updated when the user enters
correct info and nothing when bad info is entered. Thanks,
~S
--
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-/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
-~----------~----~----~----~------~----~------~--~---