similar to: check_box_tag remote_function

Displaying 20 results from an estimated 1000 matches similar to: "check_box_tag remote_function"

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>
2008 Dec 15
1
remote_function in IE with select input onchange
Here is the code: http://pastie.org/339967 Generated HTML: http://pastie.org/339969 This works great in Gecko and Webkit based browsers, but IE throws an error: "Object doesn''t support this property or method". Any clues? Thanks, Nik --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on
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
2010 Jan 30
2
passing multiple objects with remote_function
Hey, I can successfully pass a single object from any form field to my controller via: Select Year: <%= collection_select("vehicle", "year", @availableYears, "year", "year", {:prompt => "Select a year"}, {:onchange => "#{remote_function(:url => {:action =>
2010 Aug 18
2
[Rails 3] remote_function ?
Is the remote_function still valid in Rails 3 as it seems many of the Prototype helpers have been replaced ? (link_to_remote, ...) where can I find any link on it ? not in the standard doc I guess .. thanks for you feedback -- 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
2006 Jul 07
3
dynamically updating a listbox from another listbox
Hi, I would like to be able to dynamically (without reloading the page) change the values from one listbox when a user select items from another listbox. I have a model ''Sector'' which has_many ''levels'' (and of cours, ''Level'' beyong_to ''sector''). I want to show the user two listboxes with the sectors and levels. But
2009 Aug 11
5
Dynamic drop-downs in a form_for using AJAX remote_function - Help
Hello - I am fairly new to Ruby on Rails, but feel like I am learning quick. I have what seems to be a fairly unique issue as I cannot find much out there that describes what I''m seeing. Hopefully it''s a very simple fix, and I simply can''t see the forest through all the trees! I am attempting to create 2 related drop-down lists in the same form_for, both using
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">
2007 Jan 25
2
React on select_tag (onchange)
Hi, I''m new in developint rails (but I love rails). I would like to react on changing a field in the view (no model field) from a selection box to show the number of rows (which I used in the controller). In the controller I read the params-hash: ... @rowsperpage = params[''rowsperpage''].to_i ... In the view I have the field, where I like to react directly. ...
2006 Mar 29
4
using onchange options in forms
Hello, I''m trying to get a select field to update a view via the ''onchange'' option. I''ve seen examples of it here in the forum where people hardcode the forms and use javascript to trigger the change (and nearly all have complained that it''s a hack) and I''m wondering if anyone has a more elegant solution using the embedded ruby methods?
2006 Apr 22
2
selected value
I would like to pass the value selected in a select statement back so that I can use it in the controller, through using a remote_function call, and I cannot figure out what I am doing wrong: view rhtml: <select id="widgets_id" name="widgets[id]" onchange="<%= remote_function( :update => "parts", :url=> { :action => :loadParts } )
2006 Feb 07
4
Dynamic url with javascript? - Help Please
Hi, I''m trying to call a remote function when a combobox option is selected, passing as an argument the current value of the combobox (paramenter "panel_id": <select id="server_interface_jack_switch_panel"
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 =>
2011 Oct 18
0
check_box_tag call action on change (AJAX)
Hi all, I''m developing an application with Rails 3.0.9 and I have a checkbox and I want to call a function when it is checked/uchecked. I''m trying with: <%= check_box_tag "mylabel" t.to_s, false, { :onchange => remote_function( :url => { :action => ''update_preview'', :id => t.to_s })} %> in the "show" view and this in the
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
2006 Apr 11
1
how to do a simple update on the server from a change of a select box?
I have a list of items on a page. Each item has a select list. If someone changes the select list I would like to update the appropriate record on the server....nothing else. I suspect I am making this too difficult. I have an action on my controller for updating this value. I just tried the ''remote_function'', ah, function. It invokes the action on the controller but the the
2008 Sep 04
3
Can you use observe_field to watch a select list and then update the contents of a text field?
Before I waste more time trying to figure that out, I was wondering if it''s even possible? The Rails Way says that observe_field by default will trigger changes in text fields and text areas, and on clicks for radio buttons and check boxes. So perhaps I''m using the wrong tool here? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you
2010 Mar 09
9
Ajax-submit form on "check box onclick ": why this error?
Hi there, I need to have a checkbox which ajax-submits a form. The following code throws an error "index 112009 out of string". What''s wrong here? ============================================== <% form_remote_tag :url => { whatever_url } do -%> <%= check_box_tag ''whatever'', nil, whatever, { :onclick =>
2007 Sep 26
3
Ajax without submti button?
I have a drop down list, how can I set it up to send request when selecting an option rather than pressing submit button after selection? And how can I save values of checkboxex/radio buttons without submit? Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby
2006 Jun 02
3
Where are the best AJAX examples?
Googling for this has not solved my problems. Is there a particular site that is recommened for its examples and tutorials on Rails'' AJAX capabilities? I know exactly what I want to do, just not how to do it, and am looking for some code to pore over. 1) I have a dropdown that represents the name of an image in a library. When the dropdown value is changed, I would like to refresh