Displaying 20 results from an estimated 348 matches for "dropdown".
2006 Aug 06
1
Newbie: populate 2nd dropdown list based on user''s selection in 1st dropdown list
Hi,
I am creating a form that a user can post a message based on his
selection on category and subcategory. (A category has many
subcategories.)
How do I dynamically populate subcategory dropdown list when user
chooses a category from category dropdown list?
Thanks in advance.
--
Best regards,
Ming Ma
2006 Jun 05
2
dropdown
I''m using a dropdown on my form for a simple cms which displays the
pages from the database. I want to add some options to the dropdown
that are not in the database. Is there a way to do this?
Here''s my code so far:
<p><label for="navigation_link">Link</label><br/>
<%...
2008 Mar 05
6
Prototype Observe Links (Mouseover)
...am new to Prototype and after a 2 hours of research I didn''t find a
solution for the following question:
I have the following list:
<ul id="navi">
<li><a href="/about/">Home</a></li>
<li><a href="/about/" class="dropdown"
onmouseover="showSubnavi(this)">About</a>
<ul style="display:none;">
<li><a href="/history/">History</a></li>
<li><a href="/facts/">Facts</a></li>
<li><a href="/part...
2013 Jun 18
1
How to Pass Jquery selected dropdown values and radio button values to controller
...ton_tag ''user_type'', ''customer'' %><p>Customer</p>
<%= radio_button_tag ''user_type'', ''supplier'' %><p>Supplier</p>
<% end %>
<h2>Search Criteria</h2>
<div id="dropdown">
<p>State</p>
<%= collection_select(:customer, :customer_number, Customer.all,
:id, :state) %>
<p>City</p>
<%= collection_select(:customer, :customer_number, Customer.all,
:id, :city) %>
<p>Name</p>
<%= collection_s...
2006 Apr 07
3
Inline editing of datetime and dropdown select objects?
I don''t believe that Rails has support for the inline editing of
datetime objects or dropdown combo boxes.
Does anyone have a helper function or two that would allow me to do such
a thing?
--
Posted via http://www.ruby-forum.com/.
2012 Oct 09
10
Auto refresh the drop-down
I have an option in dropdown like "Add new option" written using
grouped_collection_select.
And when user clicks on the "Add new option". A pop up dialog appears to
add a new value. And when I click create it hits the database and adds the
value to the db.
But It never updates the dropdown list. Sug...
2006 Jul 20
1
cleanest, least hideous way to do dropdown date validation?
My customer has dropdowns like this:
Year Month Day
If you submit with month selected and year blank, it subs in a year
arbitrarily. Worse still, it subs in the year 5. I have no idea why.
It seems a pernicious default.
Anyway, they''re developing an app, they''re a designer turned coder,
turning to a re...
2006 Jun 08
1
built-in dropdown jumps?
Hey everybody! I was just wondering if Rails'' javascript library
includes something as simple as making a dropdown that jumps to the link
when selected without needing a "submit" button. I see a bunch of AJAX
effects and draggable-element stuff, but all i need is a simple
dropdown... should I code it myself?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 22
3
Creating a select dropdown box with links to methods
What would be the best way to create a form select dropdown box and upon
"submit" have it directly go to a controller method view?
I have something that somewhat works, but I think there is probably a
much easier way to do it. As of now, I have the dropdown list which
when the form is submitted is handed to a controller method which
basicall...
2010 Apr 10
2
Need a dropdown having "more.." option
I have a collection of products that I am showing in a dropdown. Now
at the first view it will show only first 10 products in the dropdown
with an option "more..." at last. if user clicks the "more..." he can
see all the following products in that dropdown list (this is not any
ajax request, just javascript show/hide). Of course the more......
2006 May 28
0
Best way to validate these dropdowns/multiselect options
Hi,
I have a <form> page in which there are a number of dropdowns and
multi-selects, each of which is populated upon the page loading by
quering its own table with the most recent values. These other tables
are very simple two-column set-ups - one for the ID/value and another
for the verbose description.
I am getting the editing/creation stuff working fine....
2006 Mar 22
1
HABTM / Dropdown Help Needed
....name %><br />
<% end %>
I get the correct list of subcontractors belonging to this project.
My question is this: How do I get data into the join table? If I were
doing this in PHP, I would have a button that said "Add a Subcontractor"
that would pop up a window with a dropdown where the user would select a
sub. I would then refresh the page and then refresh the page and the new
sub would appear in the list.
What is the "Rails Way" to do the same thing? I want the user to select
a sub from a dropdown, but I have no idea how to implement this. Let me
phras...
2010 Dec 02
2
foreman dropdown menu broken
Hi,
i just installed foreman from the git repository and the dropdown menu
does not work. Don''t know xhtml well but opera tells me:
Uncaught exception: ReferenceError: Undefined variable: Form
Error thrown at line 3, column 0 in http://130.149.58.152/:
new Form.Element.EventObserver(''settings_dropdown'',
function(element, value) {windo...
2006 Jan 01
7
Can''t get select helper to populate dropdown w/default value
Guys,
I searched this forum and found plenty of people having this problem,
but I didn''t see any definitive solution. Usings Rails 1.0.
When I edit an existing record, I can''t get the basic "select" helper to
display the current value contained in the field of the record. All of
my other (text) fields populate correctly with current field values.
There appears
2007 Feb 22
0
AJAX in-place editing of checkboxes and dropdowns?
I''m looking for a plugin or general directions on where to find code
implementing not only in-place editing of text fields, but also of
dropdowns and checkboxes. There is a recipe in "Rails Recipe", but it
only covers dropdown menus, and chances are that there is a plugin
somewhere out there.
However, I''ve only found "InPlaceControls", which, it seems, is
undocumented and incomplete, and which hasn'...
2010 Jun 09
1
To display a button onselect of an option from dropdown
Hi
Is there an option of displaying a button only when you
select an option from dropdown.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, s...
2013 Jan 30
1
DropDown onChange event update the table in view
Hi all,
I am fairly new to ROR and recently i created an application where i
have a combobox when on select the item from combobox i need the table
in the view to be updated based on the selection of the item selected in
the combobox. I need to do it using javascript , the whole data should
be retrived once and when the user selects the item from combo the table
data should get updated without
2013 Mar 10
1
BEST WAY TO DEVELOP DYNAMIC DROPDOWNS
Hi,
I have these models : Country, State, City . Each of these model has a
dropdown, when i select a country i want to populate state acording to the
selected country and also city with state selection.
I know that to do this i have to use jquery/ajax , but i dont know wich is
the best way to do it.
I have this example as reference :
http://pullmonkey.com/2012/08/11/dynamic-sele...
2006 Jul 26
1
List directory names in a dropdown control?
I''ve been trying to find the "right" way to do this and I''m now appealing to
the Rails masses. :)
I want to list all the directory names in a specific location and have just
the directory names appear in a dropdown control for the user.
The Dir.entries("somepath") includes the "." and ".." folders plus all files
and folders.
The Dir.glob() is hard for me to work with. I''m not familiar with that type
of search. Part of my problem is that it seems the best fit but I'&...
2006 Jul 08
2
Trouble getting select to work
...d [[cat.category, cat.category] as I am not interested in the id
and want both values to be equal to the category itself.
This form is a Donation form. One of the fields in the donation record
is a category. The database does not relate these two tables. What I
want to do is simply populate the dropdown category box from the
categories table and allow a category to be selected and that category
be populated to the donation record.
In other words:
1) Pull all categories into the form from the categories table into a
dropdown box on adding the record
2) Upon editing the record, again pull the c...