similar to: how to implement chained select box without ajax?

Displaying 20 results from an estimated 20000 matches similar to: "how to implement chained select box without ajax?"

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 Mar 08
0
ajax timing and queued visual effects
-------- Forwarded Message -------- From: Charlie Bowman <charlie@castlebranch.com> To: rails@lists.rubyonrails.org Subject: Date: Wed, 08 Mar 2006 13:25:15 -0500 Can anyone point me in the direction of a good tutorial on visual effects in rails? I''ve searched and I''ve asked but I can''t seem to find any good documentation on ajax visual effects, combining of
2005 Dec 19
0
Snippets software
I''m looking for some sort of snippets software i can use internally in m company, to store all sort of little hints and tricks you discover. I know of : http://www.bigbold.com/snippets/ And have seen a very cool version in a ajax demo movie on rubyonrails. Anybody a good hint for some sort of software ? Daniel -- Posted via http://www.ruby-forum.com/.
2006 Feb 05
4
Another layout question - Layouts on a per method basis - Layouts with AJAX
I feel I am very close to understanding how layouts are used in Rails: Q1. I know one can specify a "default" layout for all methods in a controller by specifying layout ''my-default-layout'' How can this be overridden for individual methods so when those methods are called/executed, the overridden layout will be used. Is this possible? Q2. With no
2006 Nov 12
0
Select boxes with Ajax
Hi, I would like to create a select box which is editable through Ajax. Does anyone have a code pattern for that? Up to now I’m using the following code snippet: <span id="tag"><%= @nutzer.tag%> <%= select("nutzer", "tag", Nutzer::TAG_TYPES, {:include_blank => true}) %> </span> After I call the site there appears a select box which has a
2006 Aug 05
2
Multi-step forms
I need to create a number of multi-step forms for creating models. Currently i''m looking at http://www.bigbold.com/snippets/posts/show/277 As a solution. Are there any other methods you guys would recommend? Are there any reusable (dry) methods of creating multiple multi-step forms? -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 May 22
6
which kind of deployment has the best performance
In the following deployment of web app on ONE pc-based server,running linux,which can support the most amount of concurrent users as well as the shortest latency? 1 apache+mongrel 2 apache+mongrel_cluster 3 lighthttpd+mongrel 4 lighthttpd+mongrel_cluster 5 lighthttpd+fastcgi Thanks charlie -- Posted via http://www.ruby-forum.com/.
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
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 Aug 14
0
Sharing a link with snippets
Just wanted to share a link with anyone that might be interested in seeing or sharing snippets. I came across this and it looked like there are some useful things: http://www.bigbold.com/snippets/ Stuart
2006 May 09
5
How to use gettext in plugins?
I use rails-engine as a plugin of the application and I want to localize the validate message from the plugin: validates_length_of :login, :within => 3..40, :on => :create, :message => N_("%{fn} is too short (min is %d characters)") It can not display the according language,where should i set it? I have tried to add require ''gettext/rails''
2005 Aug 10
0
JavaScript versions of the functions described in Martin Fowler''s article "CollectionClosureMethod"
I just saw this posted on Snippets a second ago: http://www.bigbold.com/snippets/posts/show/575 Is this in prototype? If not, it should be IMO! -- rick http://techno-weenie.net
2006 May 08
4
Gettext not worked in firefox,but done well under IE
Anyone who has met such a kind of problem? I am adding i18n characteristics to my webapp using gettext,it works under IE,while not under firefox. here is my codes: po: po\zh_CN\myapp.po after rake makemo, i have got: locale\zh_CN\LC_MESSAGES\myapp.mo require ''gettext/rails'' class ApplicationController < ActionController::Base init_gettext "myapp" end Then I use
2012 Dec 05
1
Ajax response in a modal box
Hello guys, I was wondering if I could display the ajax response in a modal box. I could not find anything satisfying on the web. I am new to ajax. This is what I was trying. $(document).ready(function() { var clicked1; $(".inline").click(function(e) { clicked1 = $(this).text(); $.ajax({ type: ''GET'', url:''/controller_path'', async: false,
2014 Mar 01
0
Rails AJAX slow compared to Node.js and websockets complex to implement in rails ?
I have heard alot about Node.js and watched a few tutorials and read some stuff. I get the impression that in certain situations AJAX calls with node.js is alot faster than with rails. I also have somewhat of an impression that with Rails web sockets are complicated to implement but with node.js web sockets might be alot easier. I am trying to figure out if I should learn some node.js or
2006 Jun 07
5
File is nil
I don''t understand why my program does not get the file that I try to upload. It returns the following error when I try to upload a small file: NoMethodError in LogfileController#create You have a nil object when you didn''t expect it! The error occured while evaluating nil.original_filename #{RAILS_ROOT}/app/models/logfile.rb:9:in `file=''
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
2006 Feb 11
0
show table
code snippet: ActiveRecord::Base.connection. select_values(''show tables'').each do |table_name| Came across : http://www.realityforge.org/articles/category/rails/ http://www.bigbold.com/snippets/tag/rails Send instant messages to your online friends http://au.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Nov 08
0
Paginating a fetched resultset problems with next/previous
Im using this paginate function to paginate complex sql queries http://www.bigbold.com/snippets/posts/show/389, all seems to work fine but theres one thing, when i hit the next link it show nothing, i mean it only shows the first page, here is the code im using: #application.rb----------------- def paginate_collection(collection, options = {}) default_options = {:per_page => 10, :page