Displaying 4 results from an estimated 4 matches for "search_by".
2005 Oct 20
1
Autocomplete - Destroying the object
...ons using the url iteself. So every time the
select box is changed I''m recreating the Ajax.Autocompleter Object by
using the select boxes onChange, and calliing the following:
function setSelected() {
new Ajax.Autocompleter("autocomplete",auto_complete","ajax.fetch.php?search_by="+escape(document.getElementById(''search_by'').options[document.getElementById(''search_by'').selectedIndex].value),
{});
}
Where "search_by" is the selected value of the select box.
This does work in a fashion but i need to be able to destroy any
e...
2009 Apr 12
3
Multi-button form
...#39;'index''},
{:method => :get, :class => ''form''}) do %>
<div class="columns">
<div class="column left">
<p>
<%= label_tag :search, "Search by: " %>
<%= select_tag :search_by, options_for_select(a,
params[:search_by]) %>
<%= text_field_tag :search, params[:search] %>
<%= submit_tag " Search", :name => ''search_button'' %>
</p>
</div>
<div class="column right">...
2006 Mar 13
6
Specifying none/single/many conditions at the same time
Hi!
It''s rather ruby question than rails...
I have a single ''list'' action where i call paginate method.
I can receive none, 1 or 2 variables that specify conditions for
paginate method.
How to write the code so i can call paginate without conditions if all
conditions variable are nil, with a single condition if one of
conditions variables is not empty and with 2 if
2006 Mar 31
4
How to have a form within a form?
Say I am building a blogging platform, and I want to allow users to be
able to add an avatar without leaving the page, when they''re writing a
post. I need the avatar information to be included in the form for the
post. So for example, after a user adds a new avatar while writing a
new blog post, it would be available to be selected as the avatar to be
used for that post. What is