Displaying 20 results from an estimated 9000 matches similar to: "AJAX in-place editing of checkboxes and dropdowns?"
2009 Oct 06
1
Problems Processing multiple form elements generated by javascript actions
Hi all,
After many days of struggling, I have a multi-model form with ajax
elements more or less working, but I''m hitting a wall with a few bugs
that I can''t figure out. Guidance would be very much appreciated.
I''m using the Ryan Bates technique from Advanced Rails recipes to
dynamically add and remove elements on a multi-model form.
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. The dropdowns work
with a
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 :
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/.
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 real programmer (me, allegedly) to make sense of the
madness they''ve
2006 Apr 23
1
checkboxes for filtered search
I have a page that renders a series of about 20 checkboxes on the
left hand side with content on the right. These checkboxes are
created from a DB and that part is all working well.
What I want to do is have a user click on a checkbox [genres] and
have the content on the right be filtered based on the checkbox
ticked. If a user clicks on more than one checkbox than only those
stories
2006 Mar 07
2
Sql Server 2000 booleans not working
I am migrating to sql server 2000 from postgres and I have tried char(1),
int, tinyint and bit datatypes to replace booleans, but without luck. the
1''s and 0''s are stored properly in the db, but checkboxes and dropdowns are
not being auto-populated in rails. Anyone experience this before?
thanx
--
View this message in context:
2006 Apr 22
0
Checkboxes get reset in sortable element in IE
Hi,
I am creating a list of checkboxes and text using this code:
<% count = 0 %>
<ul id="fields_list">
<% fields_ary.length.times do %>
<%= "<li id=''item" %> <%= count %> <%= "''><span class=''chkBox''> <input
type=''checkbox''></span><span
2006 Feb 05
1
Check/uncheck all checkboxes
Hello!
I have this page where I list all users in a table. There is checkbox in
every row. My User-model has a "checked"-attribute.
I have implemented the checkboxes like this:
<%= check_box("user[]", "checked") %>
Which outputs this:
<input id="user_12_checked" name="user[12][checked]" type="checkbox"
value="1"
2006 Jul 11
4
checkboxes with a has_many :through relation
All,
I''m populating a view with checkboxes in a list. I want to be able to
assign to my has_many relationship using the post values of these
checkboxes. Essentially, I want to populate the relationship table
which will create the correct join values in my model.
Here is my check_box_tag code:
<%= check_box_tag("@current_job[target_list_ids][]",
2013 May 27
3
Ransack, acts-as-taggable-on and checkboxes in search form
need some help on ransack filtering.
I have model Project, which has many tags through acts_as_taggable gem.
Project.rb:
class Project < ActiveRecord::Base
include PublicActivity::Common
belongs_to :customer
belongs_to :category
has_many :attachments, :as => :attachable
has_many :reports, :dependent => :destroy
has_many :messages, :dependent
2008 Jan 15
0
[ wxruby-Bugs-17108 ] Checkboxes not showing in GraphicsContext example
Bugs item #17108, was opened at 2008-01-15 11:28
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=17108&group_id=35
Category: Incorrect behavior
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Alex Fenton (brokentoy)
Assigned to: Alex Fenton (brokentoy)
Summary: Checkboxes not showing in GraphicsContext example
Initial Comment:
2008 Jan 18
0
Update All using Checkboxes
So I have a list of jobs which I show like this. (cleaned up..)
_list.rhtml
<table>
<% for job in @jobs %>
<tr><td><%= job.name %></td></tr>
<% end %>
I want checkboxes next to each and every job name and a button or link
somewhere else on the page to "delete selected", "publish selected" ,
and "unpublish selected"
2007 Sep 19
2
list of checkboxes, radiobuttons
Hello,
I need a help for simple problem:
i have a model Post, and i have a variable @posts = Post.find(:all)
how i can create a list of checkboxes and radiobuttons for this array of
posts and get selected checkboxes, radiobutton when submit form?
Thank you
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2009 Apr 12
0
rails 2.3 nested forms with has_many through checkboxes
I was wondering if anyone knew of a way to combine the new nested
forms in rails 2.3 with a has_many through relationship via
checkboxes. Basically I have a page model, a page_category model and
a category_items join table. Pages have many page categories through
category items. The category_items table is polymorphic so i can use
it for other models who need categories (maybe this is
2005 Oct 26
0
observe checkboxes
Hello,
I was wondering how I could solve the following problem.
I''ve a table with a list of checkboxes like:
"<table>
<tr><td><input id=''toggleSel[]'' type=''checkbox'' value='''' /></td></tr>
<tr><td><input id=''toggleSel[]'' type=''checkbox''
2005 Aug 19
0
Form.Element.getValue for checkboxes and radios?
I notice that Form.Element.getValue() takes a single element or id and
returns the element name and value. How does one handle getting the
values of checkboxes and/or radios which share the same control name,
save getting them one at a time?
<fieldset>
<legend>Medical History</legend>
<input name="history_illness"
type="checkbox"
2006 Jul 14
2
multiple options & checkboxes
Hello,
I''m trying to implement a checkbox option function, but I''m having a
problem in visualizing how it needs to be implemented.
Let me explain. I have a model (User) and another model (Category). I
want the user to be able to select multiple categories in the form of
checkboxes and have this information stored in the db.
User habtm Category
and
Category habtm User
But
2006 Jul 04
1
Has_many :through with checkboxes?
Just when I started getting the hang of has_and_belongs_to_many
relationships, I realize that I should probably convert several of my
app''s joins to has_many :through type relationships.
One example, pairing users with categories via subscriptions, where
each user can be the "owner" of a category, has given me particular
trouble when I try to update a user''s
2006 Apr 20
0
many many checkboxes
Hi *,
Starting to try and figure out the best way to handle the next part of
my first application.
I need to provide a form which will host approx 60 checkboxes - each
respective checkbox will need to relate to a boolean (tinyint? - I
persume a boolean would be best, (ticked / not ticked)).
I have had quite a google around on this and I have seen some tutorials
where it is suggested to use