Displaying 20 results from an estimated 3000 matches similar to: "Setting a HTML ID with form_tag / form_remote_tag"
2006 Jul 05
1
Prototype Based Validation with form_remote_tag
Hello,
I am attempting to use validation.js from
http://tetlaw.id.au/view/blog/really-easy-field-validation-with-prototyp
e/ with form_remote_tag. The rails form helper binds the needed
Ajax.Updater to the onSubmit action of the form. The validation.js also
attempts to bind to the onSubmit of the form.
The logic that is needed is
if( valid.validate() )
{
...Ajax.Updater...
}
where valid
2005 Sep 13
6
form_tag & form_remote_tag html id attribute
Hello,
Is there a way to set the html element id for the form_tag and
form_remote_tag on the server side?
I want to have this resultant html...
<form id=''something'' ...
...
</form>
Thank you,
Brian Takita
2005 Nov 02
1
IE6 Text Selection Problem
Hi Guys,
I have a problem with IE6. Using any version of prototype and any
version of scriptaculous IE loses the ability to select text by dragging
the text cursor over it. You can double/treble click text, or use shift
and the arrow keys but you cannot use the mouse. This applies to text in
both input and fixed elements. Has anyone else got this, or knows how to
fix it?
Cheers
Paul Shannon
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'',
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 } } )
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()'',
2005 Dec 14
2
RE: Form.serialize and Ajax.Request->fileserialization and encoding
I''d bet money that they use a hidden iframe. Gmail already uses that to
avoid breaking the back button, from what I''ve read. It''s impossible to
send multipart form data through XMLHttpRequest, or so everything I read
says and my own personal attempts confirm. There is an IE ActiveX
plugin that will let you send files in a similar fashion, but it''s IE
only. I
2005 Dec 14
1
RE: Form.serialize and Ajax.Request ->fileserialization and encoding
I''ve not looked into how it''s done but adding an attachment in Gmail (UK version) uploads the file without refreshing the window, and http://www.yousendit.com <http://www.yousendit.com/> appears to send a file via some sort of RPC or AJAX. Maybe this could be another starting point for you.
Paul Shannon
Web Applications Developer
Codeweavers Limited
Tel: 0870 443
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/.
2008 Apr 20
3
Specifying class for form_remote_tag
I have a form_tag that is:
<% form_remote_tag :url => ''/tasks/new'', :class => ''edit_task'' do -%>
Everything is fine EXCEPT the class doesn''t get assigned to the form
tag. Any help would be appreciated...
Thanks,
Alan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
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 Jul 22
17
Problem getting form_remote_tag to work with image upload
Hey guys,
I am trying to pass the parameters for the file being upload, but the
params[] are not being passed. Ive read through some posts and realize
this is an issue with RoR.
I read through some of the posts and someone suggested using:
http://svn.kylemaxwell.com/form_remote_upload/trunk/
I tried to install it, and although I thought I installed it correctly,
it doesn''t work.
2006 Apr 10
3
form_remote_tag can only have one submit button?
I setup a form_remote_tag with several submit buttons, all of them share
the same name
( ''do_action'' ) and their values differ.
eg.
button1 named do_action with value ACTION1
button2 named do_action with value ACTION2,
etc
No matter which button I press the value passed is always the one
defined for the first of these buttons ( the correct value associated
with the pressed
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
2011 Mar 04
1
form_for_tag - difference between that and form_remote_tag and form_for?
What''s the difference between form_for_tag and form_for? And between
form_remote_for and form_remote_tag?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe
2006 Jul 05
1
form_remote_tag and update
I have a layout which contains multiple divs, (header, menu, content,
footer), content contains <%= @content_for_layout %>.
I have switched all link_to and form_tag to link_to_remote and
form_remote_tag and they are supposed update the content div.
It is working, however instead of updating just the div content, it is
re-rendering the entire layout within the div.
Hopefully someone can
2006 Apr 08
2
ActionView::Helpers::FormHelper instance methods should take an object reference rather than an object_name.
Hi
ActionView::Helpers::FormHelper methods (e.g. #text_field,
#check_box...) take object_name as an argument. From this argument
they infer a name that is supposed to contains the reference to the
relevant object.
I can''t see why the FormHelper methods were designed that way.
Compared to simply passing them a reference, the current way seems too
complicated and an invitation to problems
2008 Oct 03
7
form_remote_tag and :with
I am trying to pass the result from a javascript function along with
the result from a text_field with form_remote_tag. This is what I
have so far, but no go:
<% form_remote_tag(:url => {:controller => ''requests'', :action =>
''create''}, :with => "''data=''+request()", :update => ''request_sent'' )
2006 Jun 12
2
dom id on form_remote_tag
I want to make use of a form_remote_tag to submit a form
asynchronously. Easy done. However, we also want to add an
observe_form tag to check for some value changes while the form is
being entered.
The observe_form tag needs a dom id to work on but I can''t see how to
enter an html option for the dom id of the form on the
form_remote_tag.
Any ideas?
Here is the form tag so far...
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