search for: form_remot

Displaying 9 results from an estimated 9 matches for "form_remot".

Did you mean: form_remote
2006 Apr 25
0
Submit a form_remote from arbitrary JS
What I want to do is trigger an AJAX form submit from an event handler for a form element. The form is named, and I tried calling formname.submit() from the onblur handler. However, instead of using the settings from the form_remote_tag above it, the form ends up submitting the whole browser. I know what you''re thinking, why not use an observer? I tried that, and I ran into some problems. The observe_field call is inside a partial that gets called through AJAX, and for some reason, IE really isn''t appre...
2006 Feb 12
2
AJAX calls don''t do validation
Chatting on the IRC channel today to people (thanks!) it came up that submitting a form remote bypasses the :validates... in the model. At least thats how it looks from my tests and what people said is the current behaviour. Is this the case? If so, is there a way around it or will it change in the future? I can imagine good reasons for the current behaviour. have fun, SteveC
2005 Dec 29
2
form_remote, getting data from submit
Hi list, I'm writing a little survey application, and surveys are generated dynamically. I use form_remote_tag and AJAX to submit the form to a method 'submit' in my 'survey' controller. The view generates the form as: <tr> <td>Question 1?</td> <td><input id="resultset_1" name="resultset[1]" size="30" type="text" /&...
2006 Feb 08
3
OpenRico LiveGrid or similar
...out of the question in the app I''m going to develop. If not, would anyone be interested in getting this (and some other stuff such as the accordion from OpenRico) as a plug-in or added to Rails itself in a way similar as to Protoype and script.alico.us are transparently merged into form_remote and RJS? Best regards Peter De Berdt
2006 Jun 13
1
Can I refresh a remotely updated section once?
My object has_many Link objects. So I''ve set up a form on my edit page that uses form_remote to accept a text field and then dynamically create and add a new Link object and remain on the same page. I have a div id="links" region that gets updated to show the current list of links. This works fine. But when I first load the page, if the object already had links, how do I s...
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 show them as text fields so that the user can ov...
2006 Jan 02
0
Problem with remote updates
My form_remote and link_remote tags seem to messing up and keep making the tag they are supposed to update, disappear completly. They''ll fade out, and then start to fade in but then just dissappear. I think its happening because both actions are firing at the same time on a fairly simple request. For ex...
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 ''qu...
2006 Apr 06
4
Using RJS to call custom JavaScript class/method
The announcement for RoR 1.1 shows some nice examples of RJS calls. In particular I am interested in this one: # Call the custom JavaScript class/method AddressBook.cancel() page.address_book.cancel In trying to develop a "lightbox" style modal form, I have been successful in saving the form data via AJAX but I can''t seem to close the "lightbox". I am using the