similar to: Where are the best AJAX examples?

Displaying 20 results from an estimated 7000 matches similar to: "Where are the best AJAX examples?"

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">
2006 Jun 16
4
Form magic
Didn''t know what else to call this subject, sorry. Anyway this is more a general discovery question then a coding one. Is it possible (and I already know it should be) to create forms where depending on a particular choice in one select tag, one or another select tags would be presented in the form. As an example, a shopping site , where a dropdown has options of: 1-Men''s shoes
2006 Jan 06
12
Auto refreshing a page based on select change
Hi all, I have a select helper form on a web page which contains a list of dates. When the user selects a date, one of the other forms on the page needs to be updated based on the newly selected date. Is there a way to catch this event in Rails? Are we talking Ajax here? Or is there a simpler way? Thanks, Dan
2006 Jan 04
11
Query Mixin by Duane Johnson
Hello At the start of October, Duane Johnson announced the Query mixin plugin on this list. The code was attached to the announcement email. Unfortunately, I''ve not been able to locate the attached code. Goggle has not helped me this time. Could somebody forward it to me? Thanks in advance Harvey This e-mail has been scanned for all viruses by MessageLabs.
2009 Mar 31
3
Accept POST data from external source?
Ok, this is harder than I thought. I''ve got a hunk of XML coming in from an entirely external source that I do not control (but another department in my company does, so it''s not like a giant security hole). I was hoping to just have them POST their data to me, and then I''d read the raw stream and parse it. I''m sure folks know what I ran into -- Invalid
2012 Feb 01
6
Does Devise make use of a "status" method? Weird bug.
So I''ve inherited a legacy application and I''m trying to work around the edges as I put an admin tool interface on top of the existing code base. I install Devise for user authentication, since I''ve used it in the past. I change none of the default code. And yet, on successful sign in, I get an error: Render and/or redirect were called multiple times in this action.
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 May 26
4
What association do I want here, has_ or belongs_to?
I thought I had a handle on this one but it''s causing me grief and I''m hoping somebody can set me straight. I have an object AlertTemplate which will contain a fill in the blank style hunk of web content. I then have an object, Alert, which will have a relationship to one of those AlertTemplate objects, plus some data. So, in human speak, I''d think that an Alert
2008 Sep 08
1
ActiveRecord::StatementInvalid Error
Hi There, I''m gettings the following errors while accessing my application. Can someone please tell what is the possible cause and can it be resolved. " ActiveRecord::StatementInvalid in Site#showalladdress Showing site/showalladdress.rhtml where line #3 raised: Mysql::Error: #42000You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
2010 Jan 28
2
dynamic drop downs for product search
Hey Everyone, I''m about to embark on having a search function for the products on my app via dynamic dropdowns. A dropdown for make would only leave AVAILABLE models of that make. selecting year would only leave available makes from that year etc etc. Any suggestions or good read ups ? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Jun 09
4
View into a String?
I''ve got a nice XML view of my data that works just fine when I call it from the browser. Now I''d like a different controller method to take that XML and write it to the file system. Since the XML view lives in an RXML file, is there a trick to telling the controller "Get your output into a string" instead of writing it back to the browser? After writing it out
2006 Jun 18
5
on change of drop down showing a new textfield
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
2010 Dec 22
1
'No route matches' error with select_tag
Rails 3: I have a view books/:id/show.html.erb - in the view, I have a form with a select tag to pick a template, that on dropdown should submit the form which rerenders the page based on the selection: <%= form_tag book_path(@book) do %> > > <%= select_tag "template[]", >> options_for_select([["Template1","template1"], ["Template2",
2012 Jan 30
4
Reaching into a has_and_belongs_to_many - will :through work?
Hi. I''m hoping somebody can tell me that I''ve just gotten my syntax wrong and I can in fact do what I want to do. I''ve got a Group, and a Group has_many Campaigns. Campaign has_and_belongs_to_many Users (and, naturally, vice versa). So I''ve got a groups table, a campaigns table (that has a group_id), a campaigns_users join table (with campaign_id and
2006 Nov 07
2
ActionMailer outside of Rails?
Does anyone know of issues using ActionMailer outside of Rails? I''m already selectively using ActiveRecord, so I thought perhaps I could use ActionMailer as well. (To solve one of those last minute "And could you make the app email me if it throws any errors" questions that was never in the original spec...) When I built a single file to test with, it worked fine and I
2006 Jun 08
1
built-in dropdown jumps?
Hey everybody! I was just wondering if Rails'' javascript library includes something as simple as making a dropdown that jumps to the link when selected without needing a "submit" button. I see a bunch of AJAX effects and draggable-element stuff, but all i need is a simple dropdown... should I code it myself? -- Posted via http://www.ruby-forum.com/.
2006 Mar 22
1
HABTM / Dropdown Help Needed
I''m terribly new to Rails, so bear with me. I have an application I am working on which deals with projects and subcontractors. There can be several subs on each project and each sub can work on several projects. I have my join table set up and has_and_belongs_to_many in both models. If I manually put data in the join table, this works in my show view: <% for subcontractor in
2006 Jan 27
4
find.collect problem.
Hi all. I am trying to populate a dropdown based on two values. def self.clientref( reference ) @bugclientrefs = self.find_all(["bug_id = ?", reference]).collect {|b| [ b.client_id.strip << " - " << b.client_ref.strip ]} end This works fine. However this returns the reference to the client. I want the full name using this function. class Bugclient <
2006 Jun 15
1
Ok, I''m stumped on arrays of form fields
My Alert object has_many Links. I''ve got the whole system setup where, once I have the Alert object created, I can use a nice form_remote to show the user all the Links currently attached, and add more. But the form itself starts out with 0 links. What I''d like to do now is construct the form with a couple of default "Place link here" objects in the array, and
2006 May 22
15
collection_select default selected value
Hiall, Unfortunately I just can''t find out how to setup a default selected value when using collection_select. My call is like so: <%= collection_select(:consultant, :lastname, @consultants, :id, :lastname, { :selected => @current_consultant.id } ) %> which is not working, I debugged so far that I know that @current_consultant.id contains the correct value. Any tips? cheers