Displaying 20 results from an estimated 30000 matches similar to: "AJAX Combo with Ruby on"
2006 Feb 04
4
AJAX rendered select doesn''t get submitted
I have implemented the AJAX observe_field to filter the state/province options
in my address form. This works great except when I submit the form, @params
doesn''t contain the select element.
_address_form.rhtml relevant snippet:
<%= collection_select(:address, "country", Country.find(:all, :order =>
"position"), :code, :name, {:prompt => "-- Select
2006 May 09
6
RJS, & mulitple Drop Down Boxes.
Hello Again Rails Folk!
I''m trying to creat a page similar to what the person is doing here...
http://mudabone.com/aietc/?page_id=410
Instead of doing it the way he/she has, I decided to use RJS files, or
at least I tried.
Here''s my view
<%= start_form_tag %>
<%= javascript_include_tag "prototype" %>
<p>
Union:
<div id="union">
2013 Jun 06
1
Which dahdi/libpri combo for BRI/PtmP ?
Hi,
I need to rebuild a system which has 4 BRI ports and is connected to
Point-to-multiPoint lines, in a country where telco often "drop lines for
energy savings".
I'm planning to use latest 11.4.0 asterisk version along with dahdi and
libpri (no misdn).
Which version are recommended for Dahdi and Libpri ?
My main requirements are, beside having calls coming in and out:
- keep a
2006 Jan 09
1
Ruby 1.8.4 and Rails 1.0 - safe combo?
Anyone know?
--
Posted via http://www.ruby-forum.com/.
2007 Sep 22
1
Job trend cross-over for Ruby/Rails and Java combo
See the graph at
http://tinyurl.com/35rnx4
For some time, I''ve been watching the three combinations
ruby + rails,
ruby + developer,
java + hibernate + tomcat
using the www.indeed.com job-trend grapher.
They have (after a long climb), finally reached parity.
Of course, you can pick different combinations and get entirely
different results.
-- Mike Berrow
--
Posted via
2006 Jul 04
1
Select Box problem in the controler with Ajax
Hi,
I have a selectbox that updates a given span area when a user selects a
value. The selectbox has the option :include_blank => true. The
controler will fetch the ID of the selected option in the combo box and
sends the description of the item with the same ID.
The problem is that the user is able to select the empty option, and the
controler will not be able to fecth the ID. This
2006 Aug 17
0
AJAX - Having Multiple SELECT (Drop Down), and dependency
Hi
I have three drop downs (State, City, Locality) and would like to
populate
City based on State selection and Locality based on City selection.
I have observers on two fields (State, and City). The observer_field on
state
works fine and it populates city based on state selection. But the
observer
on city doesn''t populate Locality. Now sure whats wrong with my code.
here is the
2006 Jul 22
2
selected values in combo box
how to set default value in combo box or whether there is another way
plz explain with example code
advance thx
have a nice day
--
Posted via http://www.ruby-forum.com/.
2006 Mar 29
0
css, div-tags and ajax
Hi.
I copied parts of the ajax-examples in Agile Rails prog. and modified
it so it searched for zip-codes. The result is displayed in
search.rhtml. The first version looked like this, I liked the look of
the "add to cart" in the depot-example. :class => ''button1'' is
originally addtocart which I renamed in the .css-file.
<% for city in @cities %>
<%=
2006 Mar 02
2
Ajax.Autocompleter with an empty field
Hey guys,
I have a field that will have very few autocomplete options. I have
an ajax.autocompleter on it that works great, but I wanted to make it
start autocompleting as soon as the field is blur()ed, so that even
if the field is empty, the list will still appear. Like a combo box
in windows. How can I do this? Setting :min_chars => 0 (or even -1)
didn''t work...
-Josh
2007 Nov 06
2
retrieving values from combo box
<td><p align="right">Jul/10:</td>
<td><%= select_tag "jul10",
"<option>Y</option><option>N</option><option>R</option>" %></td>
At the moment, my html form displays this combo box the way i want it,
but it does not record down what the user has selected and save it to
the database
help please,
2006 Feb 27
0
Example code for select_from_db (a.k.a. combo box)
I''m not asking for help this time! :) :) In almost every Rails
project I create, I find that I want a select() popup menu that is
pre-populated by data from the database. Also, I want an "Other..."
option that presents a text_field_tag to input another (not
presented) option (basically a combo-box). In an attempt to be as
DRY as possible, I''ve come up with
2009 Oct 19
1
Combobox population by means of JQuery and Ajax.
This is the view municipalities.js.erb I have:
<% list_opt = options_from_collection_for_select(@municipalities, :id,
:name) %>
<% puts list_opt %> #ok! list_opt contains the options
$(''#municipality_id'').html(''<%= list_opt %>'');
and this is the combobox in the view:
...
Comune <select id="event_municipality_id"
2010 Sep 08
4
Populate combo box from database without repeatness
Hi,
I have a column of data with repeated as mentioned below.
*column_name*
Acer
Lenova
HP
Lenova
Acer
Acer
Lenova
I need to populate this column in a combo box without repeated data as
mentioned below
*combo box*
Acer
Lenova
HP
I tried as
<%= collection_select(:column_name, TableName.all)%>
"table_names" is a table and "column_name" is a column needed to
2009 Apr 09
4
create_table with unique combo
I need to create a table replacing default integer id with a string id
and making a combo of (id and version) unique primary key. Here is
what I''ve got so far.
class CreateCatalogs < ActiveRecord::Migration
def self.up
create_table :catalogs, :id => false do |t|
t.string :id, :limit => 20, :null => false
t.string :version, :default =>
2008 Aug 27
4
Combo Select Filter Data
Hi, this is my second post ( sorry for my language )
need yours helps with my problem.
i need filter my model by an option in a Combo select
i thing, "i should be" with observe_field and render partial, but i have
a problem, when past to the second page, the application give me an
error. about ID
thx for your helps!
--
Posted via http://www.ruby-forum.com/.
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 May 13
5
Ajax Checkbox using Rails
Hi,
I''m trying to have a checkbox, that when clickes sends an update to the
server and in turn modify the UI with feedback on the success of the
operation.
The main difficulty I''m encountering is that I can''t pass the checkbox
value if I use the standard PrototypeHelpers.
I''m using remote_function to build the function call, but it doesn''t
allow
2008 Mar 22
4
Ajax.Updater not fully work in IE7
My code snapshot: correct work in FF , Opera and Safari, but in IE7 -
isn''t return result
<form action="test.php" method="POST">
<div id="country" style="border: 1px solid #ccc; width: auto"></div>
<br/>
<a href="javascript:getTest()">test</a>
</form>
<script
2004 May 24
9
Combo Box
>> You really want to call get_value. Unfortunately, that''s not
implemented
>> in wxRuby 0.3.0.
>I found to my surprise that this method is actually working, but only
in the
>example code that comes with wxRuby one-click install for Windows.
@combo.get_label seems to work for me.
See sample code below.
HTH,
Assaph
----- CODE -----
require ''wxruby''