similar to: onchange="document.forms[0].submit()" - how to CANCEL

Displaying 20 results from an estimated 1000 matches similar to: "onchange="document.forms[0].submit()" - how to CANCEL"

2006 Nov 23
3
Prototype Safari onSubmit Issues
Hi folks. Another Prototype question. I have a simple ajax form which I want to return results on an onChange. Works in IE6 (Win) and FF, but Safari doesn''t seem to take the onChange too well. Upon the return key, it blanks out the form. Upon tabbing to the next field (actually the next form), I get the results. <form name="form1" id="form1"
2006 Jun 05
1
:onChange and AJAX forms
Hi, I have this: <%= form_remote_tag (:update => "item_type_list", :url => {:action => :list_item_type_for_brand}, :id => "form1") %> <div> Brand <%= select :current_brand, :id, @all_brands,{},{:onchange => "submit()"} %> <input type="submit" value="Change" /> </div> <%=
2007 Jul 12
1
remote_form_for behavior on javascript submit();
Hey all, Tried this on the IRC channel but after an hour i figured nobody that was on knew, so i''ll try it here. I have a rhtml page with: <% remote_form_for(:performance_goal, :url => user_performance_goal_path(@user.account, @user, @performance_goal), :html => {:id => ''sidebar_form'', :method => :put}) do |f| %> <%= f.text_area :impact, :size
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 Mar 07
6
how to add onchange javascript event to select field
I would like to add javascript ''onChange'' event handling for a select field, such as <%= collection_select("job", "client_id" , @clients, "id", "name") %> with onChange="xxx" Anyone know how to make this work? Thank you, Scott -- Posted via http://www.ruby-forum.com/.
2005 Dec 21
3
How to make a drop-down automatically submit an AJAX form
Hi, I know that to make a dropdown box automatically submit when you change the value, you do this: <select ..... onchange="this.form.submit();"> BUT i''ve got an ajax form, and if i do the above trick, it simply reloads the ajax partial into the whole screen, rather than into the div where it is meant to go. I''ve already got it all working so that if you click
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]},
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. ...
2009 Jan 28
1
How to give onchange for select_year rails helper....
<%=select_year(Date.today,:include_blank=>true, :start_year => Date.today.strftime("%Y").to_i, :end_year => 1999)%> i am using rhis helper... now i want to give onchange here.... Please help me to solve this .... thanks in advance JK -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because
2007 May 25
2
Sortable onChange fires for every mouse movement
Anyone found that sometime between 1.6.4 and 1.7.1 beta releases of Scriptaculous that something has changed with the way that the onChange is fired? In 1.6.4 it fired once, now in 1.7.1 beta it fires everytime you move the mouse. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs"
2011 Aug 29
7
:onchange in rails 3
Hi, Anybody know why :onchange works here... <%= select_tag "Minisections", options_from_collection_for_select(@minisections, :id, :title, :selected => @minisection.id), {:onChange => "{alert(''Minisection has been changed to x !'')}"} %> but NOT here (to call a function)... <script type="text/javascript"> function xyz() {
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
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 =>
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
2005 Dec 10
1
submit ajax form through javascript
hi all, my problem: i have a form that is sent through ajax with ajax.updater. the onsubmit function looks like this: new Ajax.Updater( { failure:''command_div'' }, ''/windows/chat_post'', { asynchronous:true, parameters:Form.serialize(this } ); return false; this works fine when I submit the form by pressing the submit button.
2006 Jul 11
0
Please please somebody RESCUE me Reg. form_remote_tag !
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
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
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 Apr 26
2
Problem with auto-submitting AJAX form
Hello, I have a form generated with form_remote_tag that contains a selection list. I would like to auto-submit the form when the user makes a choice in the selection list, so I added an option :onchange => ''this.form.submit()'' to select_tag Now what happens is that when I make a choice, the partial template get''s rendered as expected, but not replacing the
2006 Jun 20
6
checkbox_tag outside a form?
Is it possible to use checkbox_tag outside a form? I''ve put it in a view and it renders but I get nothing back in the params hash. Is there a way to get the value? Like maybe with some JS onsubmit to populate the params hash myself? Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: