Displaying 1 result from an estimated 1 matches for "focus_field".
2006 Feb 12
2
link_to_remote (AJAX) and tables: IE issues, validation?
...So 
if someone attempts to add a non-valid domain, you would get some sort 
of readable error message.
Some of my code:
View:
<%= form_remote_tag(
 :url => { :action => ''create'' },
 :update =>  "items",
 :position => :bottom,
 :complete => ''focus_field()'') %>
Controller:
  def create
    @domain = Domain.new(params[:domain])
    if @domain.save
      render(:partial => ''domain'', :object => @domain, :layout => false)
    else
      #FIXME: No decent error handling yet - try adding duplicate 
domains
      r...