similar to: Select boxes with Ajax

Displaying 20 results from an estimated 30000 matches similar to: "Select boxes with Ajax"

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 Jun 06
1
Getting value of form using Ajax (and problems with Safari)
I have got two forms, the first is a textarea plus a link that activates some javascript to change the form, the second activates some javascript on the onchange event which changes it into a textarea form. This works in Firefox, but not in Safari. Also, I need the value which is selected. I''ve found an example that gives the parameter to the javascript, like this: <input
2005 Dec 23
2
Bizarre problems with AJAX / missing variables
I''m having some really weird problems with an app I''m writing. Everything is working as expected on my development machine (OSX, Rails 0.14.4) but is cacking out with weird errors on the Textdrive demo site (FreeBSD, Rails 1.0.0). It complains about missing variables, with errors like this: undefined local variable or method `rawcode'' for
2006 Feb 01
1
Combine Ajax call with an effect.
Hello list. I am a newbie with prototype, scriptaculous and with JS. Right now, I have a successful ajax call that appears in my div (thedescription) when I mouse over the link, and disappears when I click on the link. What I would like to have happen is to combine this with an effect (ie, onclick="new
2006 May 10
0
how to implement chained select box without ajax?
Former post focused on the chained select box with ajax select,but how to do that without ajax using rails? This following url can performance well: www.bigbold.com/snippets/posts/show/1916 but it can only work under firefox,while not worked in ie because it use the HTMLSelectElement.prototype,while ie does not support i am still working to modify the source of the above url,but not successful
2006 Jan 08
2
RoR AJAX select box update?
Hi, I want to update a select box depending on another selected option thru ajax. Heres how I do it # _form.rhtml <select id="budget_coordinator_id" name="budget[coordinator_id]" onchange="<%= remote_function(:update => "budget_project_number", :url => { :action => :get_projects }) %>"> <%=
2007 Jun 06
2
Getting ajax to update a select box after php mysql script is run.
Hi I''ll get to it right away: 1. I have a simple page with a form, in this form there is a "select" box with a number of options. On the right i also have a "input" field with a submit option. 2. When the user puts something in the input field and hits submit, a php script is run, that puts that entry in mysql table. Question: 3. How do i with Ajax update the
2006 Jun 28
0
habtm and multiple-option select boxes
I''ve got a fairly basic has_and_belongs_to_many setup, with a Business model and a Category model. In the admin functionality for the Business, I''d like to have a multiple select box showing all of the Categories, with included ones selected, etc. I''m stumped as to how to do it, though - it seems like there should be an easy way, but I''m missing it looking
2006 Jan 12
0
Re: RE: Re: Re: Auto refreshing a page based on select chang
> -----Original Message----- > From: rails-bounces@lists.rubyonrails.org > [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of > Kevin Olbrich > Sent: Wednesday, January 11, 2006 3:14 PM > To: rails@lists.rubyonrails.org > Subject: [Rails] Re: RE: Re: Re: Auto refreshing a page based > on select chang > > > Daniel Berger wrote: > > > <%=
2006 Apr 27
4
select item based on previous select list selection?
So I have a select list with a list of items. When a user selects an item, another select list should have its default selected item set to a specific item (the default associated with the first select list). This is in a form to create a new task. The first select list is a list of parent tasks. When one selects the parent task, the clients select list must default to the same client as its
2007 Mar 25
0
Select tags and AJAX
Here''s my situation. I''ve got a select form that I''m populating with a list of colors. I then have a database with a list of products, and each product has a specific color. Some colors have multiple products (ie. there are several "green" products). Based on what color the user selects, I then want to display (below the form) a list of all products that match
2006 Jun 25
3
select box''s
Hi, I have this code for a select box, <%= select("plugin", "plugcats", Plugcats.find_all.collect {|p| [ p.title, p.id ] }, { :include_blank => true }) %> at the minute it extracts teh requried data, but submits the data as params[''plugin''][''plugcats''] how can I get it to submit it as
2006 Feb 21
4
Select error
This code: <p> <label for="resource_type">Type</label><br/> <%= select(:resource, :type, %w{ Web Data }, { :include_blank => true }) %> </p> Produces this error: TypeError in Resources#new Showing app/views/resources/_form.rhtml where line #6 raised: wrong argument type String (expected Module) Extracted source (around line
2006 Feb 27
0
update a second div with Ajax.Updater, when Ajax.InPlaceEditor has just finished to modify another first div
Hi, I''m a newbees in javascripting with scriptaculous, but I wonder someone to help me on that simple (not for me of course !) case : I''d like to update a second div with Ajax.Updater, when Ajax.InPlaceEditor has just finished to modify another first div ? How could I do this in this kind of code : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
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
2005 Oct 31
0
SELECT instead of INPUT in InPlaceEditor ?
Hi ! I'd like to know if it is possible to create a server-side generated SELECT object instead of an INPUT for the InPlaceEditor. I guess it is, because createEditField() seems to be devoted to that. Unfortunately, my JavaScript skills are lacking. Can someone direct me as to how to override a single method in a JavaScript object ? I have the following HTML code: <span
2006 Jul 02
6
remote form w/ evalScripts:true
Hello. I want to select an item from a select list and have that result in an ajax call that updates two sections on the page. Here is the code in the controller def create ... render :update do |page| page.replace_html ''list_items'', :partial => ''lists/list_items'' page.replace_html ''add_item'', :partial =>
2006 Jan 29
1
Works with iframe, but not ajax... ?!?
Hello all, I''ve run into trouble attempting to replicate something in ajax that worked when done with an iframe... In both cases I have a table inside a div that is being periodically refreshed every few seconds... The 1st column of each row in the table contains a link to a DHTML popup menu. I have the popup menu working in the ajax version. The problem is that in the ajax version
2007 Jul 26
4
populate select box by ajax query with Prototype and IE7
Trying to populate a select box with a value passed in from another select box works great in Firefox, but using IE nothing happens, no data is getting returned back. I commented everything out and put alerts in there and the alerts work in IE but when ajax is getting used it seems to just die...Is this a bug or what am I doing wrong? --~--~---------~--~----~------------~-------~--~----~ You
2009 Oct 15
10
AJAX - how to have multiple select form sets implemented?
hi, there :) Consider a blogging application whereby a user is trying to add a new blog. He/she has to select a category. Upon selecting a category from a drop down box, a new sub categories drop down box will be created (hence an AJAX call). Got this implemented and it''s ok. Now, let''s assume that a given blog can have multiple categories (and subcategories). For example, a