search for: skip_styl

Displaying 17 results from an estimated 17 matches for "skip_styl".

Did you mean: skip_style
2008 Jun 12
11
auto_complete with multiple params
I''m using the auto_complete plugin, and it works great, my problem is i need to pass multiple parameters to the controller other that what is typed in the text field. <%= text_field_with_auto_complete :search, :contains, :size => 15, :frequency => 0.1, :skip_style => true -%> This is what i have as of now, but i also need to pass ":language => @default" because two words can have the same spelling in multiple languages and I don''t want to confuse the user. If you know how to pass multiple parameters to the controller using text...
2005 Aug 15
5
Customized Autocompletion
...ete demo, how does it know what content to use as the value of the autocomplete? The returned UL has the name, email address and an image. Yet only the name is used. How does it do this? I''ve been trying to get something similar going all morning with little success. Also, what does :skip_style=>true do? I couldn''t seem to find a mention of it in the docs. Thanks in advance. -- R.Livsey http://livsey.org
2006 Oct 23
10
text_field_with_auto_complete
Hi,all I''ve used text_field_with_auto_complete for a while but still haven''t figured out how to store the value that I selected from the suggested options. any hints? Thanks! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Jan 20
3
text_field_with_auto_complete
Hi, I am trying to use text_field_with_auto_complete, it works fine but when I click on an item (even if I use the up and down key and then type enter) th search panel disappears but the selected results is not shown in the text field. Even more, the text field becomes empty. Any idea? Thanks S?bastien -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Mar 08
6
Difficulty with params hash and submit_to_remote
Hi, Is there any trick to initializing the params hash via submit_to_remote()? I have a form with two submit methods - the regular, non-AJAX method, and the AJAX method. The regular method works like a champ. The submit_to_remote invokes the correct controller, but the params hash is empty except for the values for :action and :controller. I''d show my code, but it''s on
2008 Apr 04
4
Auto Complete Problems
...> <%= stylesheet_link_tag ''style'' %> later on down, I have this: <tr> <td class="col-1" valign="top">City:&nbsp;</td> <td class="col-2" valign="top"> <%= text_field_with_auto_complete :agent, :city, :skip_style => true %> </td> </tr> In my agent_controller.rb, I have this: auto_complete_for :agent, :city I''ve put all of the scriptaculous .js files in my public dir in a folder named scriptaculous. Am I supposed to be including some css files or anything else? I''m k...
2006 Jul 11
0
text_field_with_auto_complete problem
...to_complete working where the generated dropdown will display not only the list of teams (first line), but also their city and country(second line). In my view, I have: <p> <label for="team_name">Team: </label> <%= text_field_with_auto_complete :team, :name, {}, :skip_style => true %> </p> In controller: def auto_complete_for_team_name unless request.get? search = ''%'' + params[:team][:name].downcase + ''%'' @teams = Team.find(:all, :conditions => [''LOWER(name) LIKE ? or LOWER(short_name) like ?'...
2006 Jun 21
0
text_field_with_auto_complete broken in firefox?
...ng if I need to submit a bug? The example seems really simple... -Eric filename: testpage.htm <html> <head> <%= javascript_include_tag :defaults %> </head> <body> <%= text_field_with_auto_complete :owner, :company_name , {:size => 15}, {:skip_style => true} %> </body> </html> def auto_complete_for_owner_company_name @owners = [] @owners << "owner1" @owners << "owner2" render :partial => ''owners'' end def testpage render :layo...
2006 Jan 06
0
Rails newbie question
...elow), or do I have to go from text_field_with_auto_complete back to the controller, then render the link_to in another partial? The dropdown part works fine, btw. I''m just having trouble accessing it''s value. <%= text_field_with_auto_complete :patient, :name, {}, :skip_style => true, :url => {:action => "auto_complete_for_patient_name", :cohort_id => @cohort_id } %> <%= link_to "add", { :controller => "foobar", :action => "get_patient_info",...
2005 Dec 18
1
problems with text_field_with_autocomplete
...) <%= javascript_include_tag "prototype" %> <%= javascript_include_tag "effects" %> <%= javascript_include_tag "dragdrop" %> <%= javascript_include_tag "controls" %> <%= text_field_with_auto_complete :topic, :dr_title, {}, :skip_style => true %><br/> Here''s the handler, it''s just faked up for now. I don''t care about the actual search at this point, just want to show that the partial rendering is not working: file: app/controllers/topic_controller.rb: def auto_complete_for_topic_dr_t...
2007 Jul 17
0
text_field_with_auto_complete :after_update_element not firing
...st I created a javascript file (placed it in the javascripts folder, and include it in my header) that looks like this: function get(text, li) { alert(li.id); } Then I call this function from my autocompleter text field like so: Plan Name: <%= text_field_with_auto_complete :plan, :name, {}, :skip_style => true, :frequency => 0, :indicator => "spinner", :after_update_element => ''get'' -%> <%= image_tag ''spinner.gif'', :id => ''spinner'', :style => ''display: none''%> Oh, and my dropdown partial...
2007 Jan 11
2
text_field_with_auto_complete() - problem
...able. the first 6 characzers are empty-spaces, than the item and at last 5 empty-spaces. doeas anybody know why? and maybe how to solve this problem? my code is following: view: <td><%= text_field_with_auto_complete(:vorgang, :bez, {:class => ''auto_complete_schmal''}, {:skip_style => true} ) %></td> controller: def auto_complete_for_vorgang_bez() search = params[:vorgang][:bez].downcase # content of the text-field search = ''%'' + search + ''%'' # format string for request conditions = [''(LOWER(bez) LIKE ?)...
2009 Sep 23
4
auto_complete text field not showing drop-down box properly
This may be more of an Ajax question than a Rails question, but I''m pretty new to Rails and know approximately zero JS. I''d love if someone could give me a little direction. I''m using pat shaughnessy''s nested text_field_with_auto_complete plugin, and it seems to be *mostly* working properly (after many hours of fiddling). However, the drop-down box is not
2009 Apr 20
1
RJS sporadic error message
...username to add to your list: </b><br /> <%= text_field_with_auto_complete :user, :username, {:value => '''', :size => 45}, {:url => { :action => "auto_complete_for_user_username", :id => @user.primary_account_id }, :skip_style => true} %> <%= submit_tag ''Add Name''%> <% end -%> .... Controller code - add_profile_auto: ..... render :update do |page| page.replace_html ''travel-managers-users'', :partial => ''show_my_users'' page.replace_...
2006 May 23
5
text_field_with_auto_complete
I am having some trouble using `text_field_with_auto_complete'' in Firefox. For some reason, the drop-down list is being rendered behind other table elements. Firefox (broken): http://schema.ca/broke.png Safari: http://schema.ca/safari_works.png I''m wondering if anyone is aware of this problem, and what I might be able to do to work around it? Thanks, -Mike
2007 Jan 25
2
text_field_with_auto_complete problem
.../script> <script src="javascripts/scriptaculous.js" type="text/javascript"></script> My view is called place and is the following: <table> <tr> <td> <%= text_field_with_auto_complete :institution, :names, { :size => 15 }, :skip_style => true -%> </td> </tr> </table> In the controller I have: def place end def auto_complete_for_institution_names search = params[:institution][:names] breakpoint @institutions = Institution.search(search) unless search.blank? render :partial => "li...
2006 Jan 03
5
Pagination Question
Hi - I''ve just started working with Rails, having come from a Cold Fusion background. I''m curious how best to deal with a huge result set. For example, I''m building an app that contains users. I''ve used scaffolding to setup my initial pages for CRUD operations on users. All that is great. The problem is, I''m going to end up with 1000+ users in