similar to: Get the options in a multiple select tag

Displaying 20 results from an estimated 100000 matches similar to: "Get the options in a multiple select tag"

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 Mar 21
4
Using onSubmit tag in form_tag?
Hi guys, I have been working on a form that would use javascript to validate the data before submitting it, and from my view.rhtml I have a statement like this: However such a statement generates a HTML tag that looks like this: <form action="/users/Login?onSubmit=validate%28%29" method="post"> Seems like Rails thinks it is a parameter instead of an option, so
2006 Nov 04
0
form_remote_tag problems with post url
Hi, I''m hitting a bump with the form_remote_tag, and wondering if anyone can help.. SO i''m trying to implement a tag-based search on a site and using routes, I can enter a url such as http://localhost/tag/query , which calls an action ''search'', and returns all the posts which are tagged with the word ''query''.. fine... In the
2009 Feb 18
2
How to sort select tag options?
Hi, I have a select tag as : <%= select(:feedbacks, :directedto , {"----Select One----"=>"none","Business contact"=>"Business Contact","Technical support"=>"Technical Support","Payment Help"=>"Payment Help"},{ :selected => "none"}, {:class=>"field",
2006 Oct 28
2
onchange="document.forms[0].submit()" - how to CANCEL
Goal: I want to auto-send a form whenever any field changes. The page will be updated "via Ajax", so standard submission is cancelled. Idea: Add onchange="document.forms[0].submit();" to every field Problem: Can not cancel form submission. Browser redirects to "results" page, which is of course JavaScript meant to dynamically update the page. RHTML snippet:
2007 Apr 26
0
select tag helper and option values with html entities prob.
Hi fellow Rails developers, I am using option tags with a select form helper. One option values is containing a special character quoted as html-entity ( &auml; ). When I provide the option tags to the select tag helper the ampersand gets quoted automatically. The result is &amp;auml; which doesn''t look as expected. Has anybody an idea how to avoid this quoting? Thanks, thorsten
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
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
2007 May 09
1
How can I change a form's onsubmit event handler using rjs?
Hi all, I have a ajax form creating by "form_remote_for", whose url is to create a new model by default. The page doesn''t change after the ajax call on submit button so the form is still there after the new model is created. But if I submit the form for the second time, I want to update the formerly created model using an Ajax post. I think I could render an rjs at the end of
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 12
0
updating two divs based on condition
Hi, 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 within the same form_remote_tag. But couldn''t find any solution at the moment. If I use -> nChange =>''this.form.onsubmit()'' this update the whole "div_main_data" as I couldn''t toggle the update
2009 Mar 18
1
Ajax file upload with remote_form_tag
when I tried below, it worked <form target="upload_iframe" action="/profile/validate_charts_file" id="upload_charts" method="post" enctype="multipart/form-data"> <input type="file" name="charts_file" id="filename" /> <input type="button" name="submit"
2007 Mar 24
2
Why not giving every link, button etc. tag a unique id attr?
Hi all I''m playing around with Selenium IDE for creating automated acceptance tests for my RoR projects (very cool tool by the way). Often it''s the easiest way to pass a HTML-tag ID to Selenium to perform actions such as clicking on a link or submitting a form. Sadly Rails does not automatically create ID attrs for many tags like links or buttons. Has this a special reason? Or
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
2005 Aug 01
2
function.prototype.bind return value?
Quick question - how come the function.prototype.bind doesn''t allow for return values? Am I missing some basic understanding of how this works? I searched and couldn''t find an answer. Specifically, I''m binding an object method to an existing form''s onSubmit, but it still actually submits the form, refreshing the page - which is not what I want. If change
2006 Jun 23
3
form_remote_tag is not passing form params
I''ve searched and searched and searched again, and I cannot find any help with this problem. There''s an identical problem on this forum, but it was never resolved. I''ll try to re-open the subject with a bit more information. Problem: The form_remote_tag() method in my "list" view is not passing the params[] hash of the values stored within my form.
2006 Jul 27
1
form_remote_tag
How can I get a name/id for a form using the remote form tag? <%= form_remote_tag :url => { :action => :add_to_cart, :id => timecard } %> gives me: <form action="/timecard/add_to_cart/4" method="post" onsubmit="new Ajax.Request(''/timecard/add_to_cart/4'', {asynchronous:true, evalScripts:true,
2006 Apr 10
3
form_remote_tag : additional onsubmit funct. possible ?
Is there a way to add onsubmit functionality to a form_remote_tag with an additional javascript directive? eg I''d like for an inline javascript to make the form''s div container hidden as soon as the button is pressed to avoid having it possibly get pressed again ( sometimes the rails response is slow enough for a user to think they need to re-press it ). example: <div
2008 Apr 09
13
submitting an ajax form via javascript not rendering
for some reason the controller is parsing everything fine, but the return is a page instead of code execution. I have other ajax forms no listed that are also running fine on this same page. there are supposed to be 3 ajax events: onblur event that calls a function to submit - doesn''t work. There is a submit button at the end of the form - works there is a delete image that removed the
2006 May 01
1
Radius 0.0.1 -- Powerful Tag-Based Templates
I am pleased to announce the immediate release of Radius 0.5.0. Radius is a small, but powerful tag-based template language for Ruby inspired by the template languages used in MovableType <www.movabletype.org> and TextPattern <www.textpattern.com>. It uses tags similar to XML, but can be used to generate any form of plain text (HTML, e-mail, etc...). This release is much more feature