search for: error_div

Displaying 2 results from an estimated 2 matches for "error_div".

Did you mean: error_db
2006 Apr 28
2
Ajax form error handling
Hi, I have a customer add form in which i call form_remote_tag to update a customer list within another div on my page. I need to also, however, allow for proper error checking, and the issue is that the form_remote_tag will only update a single div tag. I have seen a few ways to deal with this, but I want to know what the best way is, while still allowing the model to do all of the
2006 Mar 17
1
How to handle errors - HELP
...If the comment is blank, then do I want to rescue the nil, then "render :text => ''Please fill out the fields.''"? Then in my remote form options, on the :update, I could have: :update => {:success => ''the_right_div'',:failure => ''error_div''} ???? This is how I interpret the overall process, but I don''t know the correct syntax on how to do this with the resue, and what I check for. I just want nothing to happen when the user clicks the "submit comment" button when there''s nothing to submit. P...