search for: form_name

Displaying 6 results from an estimated 6 matches for "form_name".

2006 Apr 03
6
problems with Rails 1.1 observe_field :with serialized
I''d like to use observe_field to watch a field, and then when it changes send the entire form to the server. I had been using <%= observe_field ''entity_name_''+@account.id.to_s, :frequency => 0.5, :update => ''auto_complete_''+@account.id.to_s, :url => { :controller => ''committees'', :action=>
2009 Oct 29
4
manipulating form
Hi, I work with forms and i won''t to set a name for a form to use javascript functions.. How can i do Thanks
2007 Aug 31
2
Give focus to an input field of a form
...s and I have setup Typo on my site. One little thing bugs me, the login page doesn''t give focus to the "user_login" field. I was wondering what do I need to do to make rails help with this? I have seen some simple inline javascript to set the focus, sort of like: document.<form_name>.user_login.focus() However the rails view doesn''t have name for the form, so that code won''t work. Below is the code for the login.rhtml from Typo: <% form_tag :action=> "login" do %> <div title="Account login" id="loginform">...
2006 Feb 07
3
in place edit, save on blur
I thought I''d seen some discussion on this, but can''t find it. I have a text area that I''d like to save on blur unless the user clicks cancel. Anyone got a nice example of this? It''s non-obvious to me how I force the submit via javascript. Thanks, pt. -- Parker Thompson http://www.parkert.com/ 510.541.0125
2006 Apr 07
1
Validate_presence_of error in nested object is not displayed
....visual_effect :appear,''contentTable'' page.visual_effect :appear, ''msgs'',:queue=>''end'' page.visual_effect :fade, "msgs",:duration=>2,:queue=>''end'' end else render :update do |page| @form_name =''Adding contact'' page.replace_html ''formContent'',:partial=>''form'' end end end The problem is that the contact is saved and there is no message allerting me that the addres is mandatory . The line logger.debug @contact.a...
2006 Jul 27
1
form_remote_tag
How can I get a name/id for a form using the remote form tag? <%= form_remote_tag :url => { :action => :add_to_cart, :id => timecard } %> gives me: <form action="/timecard/add_to_cart/4" method="post" onsubmit="new Ajax.Request(''/timecard/add_to_cart/4'', {asynchronous:true, evalScripts:true,