similar to: AJAX/drop-down form entry

Displaying 20 results from an estimated 30000 matches similar to: "AJAX/drop-down form entry"

2006 Aug 18
1
Anyone seen any articles on AJAX autocompleting mulitple...
I don''t even know what its called really, so its hard to search for. Here''s an example. They do this on MOG.com: There''s one text field visible. You type in a band name. Another text field appears. It auto completes album names based on the band name you chose in the first field. What is this type of thing called? Where is some source code I could look at? any
2006 Jul 28
1
How to ajax highlight a flash
Hi, I want to make a flash[] highlighted for let''s say 5 seconds when some action is invoked. In the controller, I have: flash[:notice] = "error" In the layout, I have: <p style="color: white"><%= flash[:notice] %></p> I don''t know how to use ajax with the flash. I tried something like: element.highlight(flash[:notice]) without any
2006 Aug 02
5
Fun with ez_where
I''ve been trying to use the ez_where plugin to create a dynamic finder. The structure looks somehing like this.. === controller === def list attribute_filter = params[:filter] @filter = Caboose::EZ::Condition.new :table do attribute <=> attribute_filter if attribute_filter end # ... do the find with the @filter # end === view === .... <%= link_to
2006 Jul 17
3
Best practices - field initialization based on display rules
All, I have a form with the following field interaction rules. Given checkbox A, text field B text field C If checkbox A is checked then make text field C equal to the value of text field B and disable field C. If checkbox A is unchecked then enable field C. In order to display a form where I''m manipulating an already existing object, I have something like this in my RHTML template
2006 Jul 23
2
[OT] Ajax design question - breaking a table with text...
Hello everyone, I''ve got a table of data that looks like the following: ... <tr> <td>Field 1</td> <td>Field 2</td> <td><%= link_to "Info about Field 1", ... %></td> <td><%= link_to "Info about Field 2", ... %></td> </tr> I''d like the user to be able to click on "Info about
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
2006 Jul 21
10
why validation on server side
hi, i have noticed that the validations in RoR happen at server side mostly what sites do is using javascript they validate user information there... whats the point of doing it at the server side is it that loading of javascript file in a browser makes a response to client slow and validation at server side offsets that....????? any sugeestions???? is it that i am missing something as
2006 Jul 14
5
Ideas for AJAX pagination
Hi, I am looking for ideas on how to remove the last item from a paginated page when a new item is inserted, thus leaving only 10 elements on the page. Currently I have a form that inserts with AJAX, but as expected, each post added to the page just increases the number of posts leaving 11 on a page that should only be displaying 10. I have unique ID''s for each post (e.g.
2006 Jun 18
3
on change of drop down a textfield emerging
hi, i have a situation where i have a list of options from which a user selects his options if its not in the list he/she selects Others/Not Present and a new textfield should pop up and the data entered there should be considered instead of dropdown. i have done this using javascript/dhtml but i was wondering how this can be done using pure rails i.e using some of the RoR apis?. i would
2006 Apr 24
3
AJAX drag and drop sorting with pagination
Drag and drop sorting is great but if you had a list of, say, 100 items, you''d probably want to show only 10 per page. Has anyone seen any way to use the a drag and drop style sorting method over a number of pages? I see it working by having the displayed list sortable as normal then an item is moved to the next page by dragging it onto the ''next'' link... maybe...
2006 Jul 15
12
Safe way to destroy records
Hello, how can I check if a destroy was successful? Is the object only frozen if deleted or do I have to do an additional find to see if there is a record left? What happens if an after_destroy callback returns false? Is there always a rollback? Markus
2006 Jul 16
7
RJS and Action Renders but page doesn''t update
All, I am trying to perform a simple ajax task and am having some difficulties with the page showing the response. The action performs, but no response on the page. I have found examples on the web and I believe I have copied and pasted exactly what works from the demo site. However, on my system it isn''t finishing. For a simple test, I have limited it down to an alert.
2006 Jul 26
4
Dropdown with concatenated columns.
What is the best way to create a drop down where the viewable text in a concatenation of 2 or more columns? For instance, I hane a lookup table with these columns. Model FOO columns: id , name, phone In my drop select tag, I''d like the user to see: "name1 phone1" "name2 phone2" etc.. I know I can do this using find_by_sql . .. But, isn''t there a more
2006 Jul 20
9
Including children''s children?
a has many b''s b has many c''s results = A.find params[:id], :include => :b How do you also make sure the b''s include the c''s? Thanks for your help. Thank You, Ben Johnson E: bjohnson@contuitive.com O: 800-341-6826 M: 817-229-4258 -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Apr 12
22
Dynamic Select Box
Hi, I''m new to rails/ruby having come from PHP and am just starting to get my head round how easy it can be :) However, can anyone point me in the right direction for dynamicaly updating a select box based upon the choice of a previous select box, without a page refresh. Any and all help greatly appreciated. Thanks -- Posted via http://www.ruby-forum.com/.
2006 Jul 15
13
Active Record: Can it auto-create database tables for you?
Hi, Just get started with Rails and I''m trying to read ahead and find out whether Active Record supports auto-creation of database tables for you? Is this supported, or is the concept that you write your own database DDL to do this? Thanks -- Posted via http://www.ruby-forum.com/.
2006 Apr 23
2
models and views
Greetings. I have an application which is used to track jobs and payments. The billables table contains columns "job_date", "amount" and "receipt" which indicate the date of the job, the amount due and whether or not payment has been received, respectively. In addition to tracking and manipulating individual jobs, the application is also used to generate aggregate
2006 Aug 02
4
Search function in this Forum ??
This forum has been a great resource for me. It would be great if i can search the forum before posting any question, as i''m sure someone has already posted that question before. The search function has been disabled for quite sometime now. I''ve already emailed the administrator but haven''t got any response. any idea on when this would be enabled ? Thanks, VASU.
2006 Jul 27
17
How do you stop a Ruby method from executing?
Hey guys, How do you stop Ruby code from executing? For example, def newaction puts "1" return puts "2" end I tried return in the following example, but it continues and than looks for newaction.rhtml. How do I stop it completely dead in its tracks? -- Posted via http://www.ruby-forum.com/.
2006 Jul 20
3
sort_by with via a parent models child
I am having a problem with ruby''s sort_by function. I want to sort a list of parent model objects based on the children of the parent models. Normally you might say sortedList = modelList.sort_by { |model| model[''someAttribute''] } What I am tring to do is sortedList = modelList.sort_by{ |model| model.children.find(:first, order=>"price desc" ).price}