similar to: Parameter value in RJS call

Displaying 20 results from an estimated 60000 matches similar to: "Parameter value in RJS call"

2006 Jun 06
0
Get value from form using rjs, and problem with Safari
Hi, 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
2006 Aug 08
2
Javascript - multiple select selectboxes
I am trying to populate a multiple select box using javascript, but am having problems with the name. When I change the name to "codes[]" I can''t get the javascript to find the form element, but without the [] on the end, rails wont read all of the selected values. Here is an example of the javascript working, but when you submit the array is not passed across for the codes.
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
2006 Jun 14
4
Select box onchange problem
Hi, i''ve got the following problem. I have a check_box witch shows a list of varieties. Now i want to call a action when the user changes his selection. (the method to be called, will store the selection from the user). This is my code: <%= select(''variety'', ''variety_id'', Variety.find_all.collect {|c| [c.description, c.id]},
2011 Mar 31
6
Parse selectbox value with javascript
Hey guys, i''ve the following question: how can i parse the value of a selectbox within a div-tag (with the id "ma") via AJAX and use the parsed value for reading out some data from my database. the parsing request should be started by selecting another selectbox. My mainquestion is: how can i parse a selectbox (if possible with rjs) an get the value in ruby (not just in
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">
2006 Jul 20
0
Getting joined collections on a form
Greetings, I''m looking for suggestions on how to simplify getting customer addresses on a form: I''m jumping between controller and view several times; alternating between rhtml and rjs, in order to display customers and their addresses on an invoicing form. It''s very messy. I have a one to many relationship between Customer and Addresses, each customer has one or more
2006 Jul 21
0
Selecting customers and addresses in a form (was Getting joined collections on a form)
(Sorry if you have received this twice, I''m having trouble sending mail to the rails list) Greetings, I''m looking for suggestions on how to simplify getting customer addresses on a form: I''m jumping between controller and view several times; alternating between rhtml and rjs, in order to display customers and their addresses on an invoicing form. It''s very
2006 Jun 15
0
retrieving parameter or selected value using remote_function
Hi, Can anyone let me know how to fetch selected option from the following select box : <%= select(:category_view,:name,@categories_choices, {:include_blank => false}, {:onChange =>remote_function(:update => "div_team_coverage", :url => {:action => :set_team_values} ,:with => "category="+ escape(value))} ) %> <div
2006 Feb 10
0
Updating a select in a form
Hey everyone, I have a form with two selects, a category and a sub category. Obviously, the sub-category menu cannot be filled in until a category is chosen and must change based on what category is chosen. Before I was using AJAX on this form I had an onchange="this.form.submit()" on the category select, and the controller knew to simply re-render the view if
2006 Jul 11
1
form_remote_tag ISSUE !
Hi frenz, I need to update "div_main_data" on click of one submit button and I need to update "div_member" on change of one select option. But couldn''t find any solution at the moment. If I use -> :onChange =>''this.form.onsubmit()'' this update the whole "div_main_data" as I couldn''t toggle the update parameter in
2008 May 05
1
Passing values selected with onchange remote_function
How do i pass the value selected from a drop down selection and then extract it in rjs <% select("what", "hello", @selection, {}, {:onchange => remote_function(:url => "test", :my_variable => "hello again") } ) %> thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2006 Sep 10
2
Issue with radiobutton and remote_function in IE.
Hi there! I did implemented the radio button with remote_function to update some div via RJS. It works perfect with FireFox, but behaves weird with IE. When I click the radio button it loads data (I see the indicator showing) but not updates the div with info until I click left mouse button anywhere. It''s weird =( Here is the snippet from .rhtml code <td>
2006 May 20
1
Slider.js - Attemting to put values in form.
I can''t figure out how to take that value that the user has chosen in the slider and put that into a form value. Does anybody know how to do this? Here is my code so far (It''s pretty much directly from script.aculo.us): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>Text effects tests</title> <script
2006 Aug 10
5
RJS in Internet Explorer to update a list box
Hi, I''m trying some RJS to update a series of list boxes in which the user selects a state, and the following list gets updated with a list of counties, and the same for the next list of areas. My code works perfectly (albeit a bit slow) on Firefox, but on Internet Explorer it clears the list box (instead of filling it) and Netscape shows all the counties cramped together on one
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 Aug 07
2
Select Box Question
Hi, Yet another newbie here... I''m writing an appliction in Rails, and I''ve Ajaxified my select boxes so they update dynamically. I used the "observe_field" method to monitor changes to my select box. I find that it''s kind of erratic... it updates constantly and makes the selection for me, based on where my mouse happens to be hovering when it does its
2006 May 23
0
Slider.js - Attemting to put values in form.
I can''t figure out how to take that value that the user has chosen in the slider and put that into a form value. Does anybody know how to do this? Here is my code so far (It''s pretty much directly from script.aculo.us): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>Text effects tests</title> <script
2006 Jul 24
1
Change a <select> value in RJS?
Is it possible to change which value is selected in a select tag using RJS? If not what would the raw javascript be to do this outside of an RJS template? Thanks for your help. -- Posted via http://www.ruby-forum.com/.
2006 Nov 04
0
RJS not setting form input value correctly
Good day. I have spent almost 2 days on this issue. I have asked everyone from my Rails expert to my Javasript expert and we can not for the life of us figure out the issue with this one form element. I have a form which contains several readonly/disabled (firefox/ie) form elements. ALL elements in the form are updated correctly EXCEPT this one form element. The form element in the view looks as