search for: set_focus_to_id

Displaying 3 results from an estimated 3 matches for "set_focus_to_id".

2008 May 26
0
setfocus to a field in view
...ansfer_reason'').value", :url => { :controller => :service_desk,:action => :edit_service_desk_status_after_transfer_from_search_sd, :sd_id => sd_ticket.id, } }, %> So to focus cursor to this textarea I used <%= set_focus_to_id ''transfer_reason'' %> just below that and it is working properly. And in appliation helper def set_focus_to_id(id) javascript_tag("$(''#{id}'').focus()"); end But my problem is i am replacing the same div from the controller after processing...
2010 Oct 11
0
Converting observe_field to UJS in Rails 3
...:action => "search",:area => params[:area]}, :method=>:get, :with => "query" %> <div id="search_results"> <p class="plantname2">(Search results will be listed here)</p> <%end%> </div> <%= set_focus_to_id ''query'' %> In one of the controller:- ******************************........... def search session[:query] = params[:query].strip if params[:query] if session[:query] and request.xhr? @plants_sn = Plant.find(:all, :conditions => ["scientificname LIKE ?",...
2007 Jul 20
4
the value in text_field helper
I have been working on this small, minute, part on my project and it all hinges on setting the value in a text_field helper. Saying: <%= text_field ''user'', ''company'', :value => @login %> does not do it. When I go and look at the raw html, there is no value there and "value" is an attribute of the input tag, im pretty sure. I really like