similar to: Uploading a file with form_remote_tag problem.

Displaying 20 results from an estimated 5000 matches similar to: "Uploading a file with form_remote_tag problem."

2006 May 06
5
form_remote_tag not posting data
I''m trying to use the form_remote_tag for the first time.. Here is my code: <%= form_remote_tag(:url => { :action => ''add'' } ) %> <td size=''100''><%= text_field_tag ''name'' %></td> <td size=''200''><%= text_field_tag ''email'' %></td> <td
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
2006 Jul 31
4
Text field not being submitted via form_remote_tag; works via form_tag
Hi everyone, Newbie here. I''m trying to get a textual form element to submit in the context of a form_remote_tag block and having little success. Oddly (or perhaps not), using regular old form_tag in its place does cause the elements to be submitted. Here''s the relevant partial ERb code: <%= form_remote_tag( { :url => { :action => :out, :id => pending_task } } )
2007 Oct 03
4
form_remote_tag :onsubmit not working.
Hi, Has anyone successfully implemented the :onsubmit option for form_remote_tag. It doesn''t seem to work for me. Is there any specific version of rails which is required for the same. Here''s my piece of code. <script> function set_tojid(){ alert(''onsubmit''); } </script> <%= form_remote_tag :update => '''', :url => {
2005 Nov 25
0
question on rails , form_remote_tag and backbase
David, I been reading your book and going through the examples but i am stuck on th using the form_remote_tag. I am using the Backbase ajax framework with rails and protoype.js The following form.rhtml file <% if @guess %> <p> It seeems ''<%=h @guess %>'' is hardly the right answer</p> <% end %> <%= form_remote_tag(:update =>
2006 Jan 13
9
form_remote_tag breaks inside table
i guess its better form to keep form tags outside of table tags anyways, but it took a lot of trial and error to figure out thats why @params were no longer showing up after switching form_tag to form_remote_tag. not sure if this is a prototype ''bug'' or ''feature'' or what. but my next step was to switch to a seperate form tag for each row to reduce needless
2009 Sep 17
2
Can i use "form_remote_tag" inside the "form_tag"?
Hi all, How can i use form_remote_tag inside the form_tag helper . My application has following view subscribe.html.haml - form_tag :action => :subscribe do /other form element %input{:type=>''radio'', :name=>''tariff_plan_id'', :value=>"monthly"} %input{:type=>''radio'',
2007 May 29
0
Ajax sortable_element refresh
Hi, I have the following ajax example, with a list of counters, and two buttons for adding/removing elements. The list is sortable. There are two things that I don''t know how to do: . remove an elemet . when I add a new element to the list, that element doesn''t become sortable with the rest of the list Thanks, hugo #### View <html> <head> <title>Ajax
2006 Mar 06
2
form_tag error -- not found, 404 -- action DOES exist!
Hi -- I''ve got a very strange error. I have an action called ''commit_input'' on a controller called ''SiteVisitController''. This definately exists, and is called from the functional test for it, and passes fine. My problem is with the form that is supposed to call this action. The form tag is: <%=
2006 Jun 19
3
can''t dump anonymous class Class
I''m trying to create a document upload system, where most of the code is the super class Document and just the path to file on the system is controlled by the sub classes. When I attempt to use my code, I get the following when I try to save the document. can''t dump anonymous class Class Any ideas? ** Migration ** class CreateDocuments < ActiveRecord::Migration def
2006 Jul 27
1
form_tag vs form_remote_tag ----- the :condition option
form_remote_tag has a really useful little thingamob called :condition. you give it a string which is then interpolated into the form tag in such a way that the form is only submitted if :condition evaluates in javascript to true. so the logical thing to do is give it a JavaScript function <%= form_remote_tag ( :condition => ''your_function_here()'',
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
2006 Feb 26
0
Ajax, MemoryStore and sessions
Have you ever worked with Ajax, memoryStore and sessions in Rails? I''m trying to pass a value through a session variable to various methods. I''m calling the methods with Ajax on a submit button. I do this twice on a page. The first time I pass a variable from the page to the controller and store it in the session and write a log entry. This works fine. When the second button
2006 Feb 27
2
Multiple forms on a page
Hello all. I have the following Code in a view: <% @dishes.each do |dish| -%> <tr> <td><%= link_to dish.name, :controller => "restaurant", :action => "show_dish", :id =>"#{dish.id}" -%> <% if dish.vegetarian? -%> <%= image_tag("/images/vegetarian.gif", :class => "bevel", :size => "8x8")
2005 Aug 15
2
Newbie rendering problem
Hi On every list request i render an item partial through a collection of items. the item table has 3 columns namely name,anotherName and id. the item partial looks like <%@item=item%> <%= error_messages_for(:item) %> <tr id="<%=item.id%>"> <% for column in Item.content_columns %> <td><%=h item.send(column.name) %></td> <%
2006 Jun 20
2
Problem with "can''t dump anonymous class Class"
I submitted this earlier, but the web forums went down and I''ve screwed up the thread, so I''m starting over. I''m trying to built a document upload system. The system has a main Document model with different subclasses for different types of documents. With the code below, if I attempt to create a Document, it works fine, but if I attempt to use one of the subclasses, I
2006 Jul 05
1
Setting a HTML ID with form_tag / form_remote_tag
Hello, Is it possible to specify a HTML ID with the form_tag / form_remote_tag methods of the FormHelper? I specifically need this for javascript and css but can''t seem to find how to do it in the APIs. Cheers, Paul Shannon Web Applications Developer Codeweavers Limited -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Apr 14
2
Nested AJAX remote_form in form?
I''d like to achieve something that is better described by the following code: <%= start_form_tag :action => ''create'' %> <%= text_area ''place'', ''description'', :cols => 100, :rows => 4 %> <div id="categories"> <%= form_remote_tag :update => ''categories'',
2006 Aug 15
2
Are form_remote_tag and submit_to_remote mutually exclusive?
Do I need to use submit_to_remote in conjunction with or instead of form_remote_tag? The description in the API docs. is confusing. Is the combination of form_tag/submit_to_remote valid? Is the combination of from_remote_tag/submit_tag valid? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Apr 20
0
Clearing text_field_tag -- Help PLEASE
I''m trying to clear the input fields on an Ajax form. Unfortunately, I''ve tried this just about every way I can think of and instead of clearing the fields, it''s clearing pretty much the whole page. I would ***really*** appreciate some help! The page has a form that allows the entry of two fields. The form exists inside a <div> with id=entry. When the user