Displaying 20 results from an estimated 10000 matches similar to: "link_to_remote with form values?"
2006 Jun 06
1
Getting value of form using Ajax (and problems with Safari)
I have got two forms, the first is a textarea plus a link that activates
some javascript to change the form, the second activates some javascript
on the onchange event which changes it into a textarea form.
This works in Firefox, but not in Safari.
Also, I need the value which is selected. I''ve found an example that
gives the parameter to the javascript, like this:
<input
2006 Jun 06
0
Get value from form using rjs, and problem with Safari
Hi,
I have got two forms, the first is a textarea plus a link that activates
some javascript to change the form, the second activates some javascript on
the onchange event which changes it into a textarea form.
This works in Firefox, but not in Safari.
Also, I need the value which is selected. I''ve found an example that gives
the parameter to the javascript, like this:
<input
2006 Jan 14
3
link_to_remote where the url contain a javascript variable
Ok, so I am basically trying to use ''link_to_remote'' and pass the value
of a javascript variable as an argument. Something like that:
link_to_remote "my_link",
:update => ''my_div'',
:url => { :action => "my_action", :var =>
''my_var'' }
Basically,
2006 Mar 10
4
Problem with ajax and textareas on firefox but works on IE
Hi folks,
I''ve been trying to figure this one out for a few hours now and can''t
seem to understand what I might be doing wrong here. Basically, I have
a textarea which has a little icon next to it which will fire off a
reset of the original comment if pressed. It works under IE so that
when the user types some garbase in to the textarea, and clicks the
icon, the contents
2008 Feb 11
1
Rich Text Editor and link_to_remote
Hi
How can I get link_to_remote to call a new page and respect the
javascript within that page.
I do have an edit page for datarecords, that have a textarea which is
enhanced with the YUI Rich Text Editor. If I call that edit page
through link_to_remote, the editor isn''t displayed. If i call it
without the AJAX, it works fine.
What can I do?
2006 Jun 30
1
getting form values using link_to_remote
I have this as part of an .rhtml page:
<%= javascript_include_tag "prototype" %>
<%= form_tag :controller => ''reallist'', :action => ''addnewuser''%>
email:<br />
<%= text_field_tag :email, nil, :size => ''14'' %><br />
<div id=''nameStatus''>
</div>
<%=
2006 Jul 19
1
using link_to_remote to post form values
Hi,
I have a website in which I am attempting to post certain form values back
to my controller using link_to_remote. I need to do this without any
additional form tags, as it is already within a larger form. I have found a
mod that i think would do this @ http://dev.rubyonrails.org/ticket/2137 but
unfortunatly the site is down right now. Does anyone have any ideas on the
best way to implement
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 } } )
2005 Mar 31
5
Outputting XHTML strict
I''m trying to get a page to validate as XHTML Strict, and I''ve gotten
everything fixed except for one <textarea> that Rails is generating.
<textarea cols="40" id="estcomment_comment" name="estcomment[comment]"
rows="10" wrap="virtual"></textarea>
This tag is being called in my view with
<%=
2006 Jul 26
2
text_field and date_select in collection
hello,
i would like to display a collection of records on one page (e.g. an
author record with all his/her books).
a record contains a text_area (e.g. a description of the book) and a
date_select (e.g. when the book was published).
<% for @book in @author.books %>
<%= text_area ''book[]'', ''note'' %>
<%= datetime_select
2007 Sep 26
1
Is there a Rails helper similar to link_to_remote but for a form check box instead of a link?
I''m working on a couple of user input forms -- one data entry, one
search -- where I''d like to start off by displaying only top-level
categories. Then, if a user checked one of the top-level categories,
all the child categories would show for that top-level one.
(Displaying all the child categories for every parent would be a bit
overwhelming, it''s a large list.)
I can
2006 Jul 20
5
Need HELP changing link_to_remote to a button
I would really appreciate some help with changing a link_to_remote call to a button of some sort. Here''s a little background.
On the page there are two <div>s. One is a form that lets the visitor enter items. The second <div> is where the entered items get displayed, each in it''s own item <div>.
Each item <div> has two <span>s. The first one
2006 Jan 21
1
text_area content with text_area and not text_area_tag ?
Hello,
Is it possible to fill the textarea content when using the text_area
function ?
Why there is 2 , + or - similar class : FormHelper and FormTagHelper ?
2007 Mar 11
0
widgEditor not showing on edit page?
I implemented widgEditor for a text_area,
I use
<%= text_area ''post'', ''description'', ''class''=>''widgEditor'' %>
to offer a basic textarea allowing users to enter text.
it shows when creating a new record, but not shows when a user clicks
edit page. the edit pages just shows a plain text_area.
all rhtml pages are
2007 Oct 23
0
Noob Question: Problems with FormOptionsHelpers
Hi!
I have problems to see existing values in several FormOptionsHelpers..
(text_area or select for example):
<% @models.each do |model| %>
<% form_for "model", model, :url => { :action => :update } do |f| %>
<%= f.text_field :name %> // works
<%= text_area "model", "text" %> // doesn''t work...
<%= select
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 Jan 17
4
textarea problem with accentued chars
Hello, I have a problem with accentued characters return from a textarea
I have 3 simple files to show example ( below ).
index.rhml : If I put "?nial" inside the textarea, then submit to
:action => post
post.rhml : wrote
?nial
195
"\303\251nial"
//
params[:comment][:message] return => ?nial
params[:comment][:message][1] return => 195 ! ( 195 is not
2006 Jul 19
0
Form helpers produce invalid XHTML code!
Hi all
The following scaffold creation form code...
<%= start_form_tag :action => ''create'' %>
<%= render :partial => ''form'' %>
<%= submit_tag "Create" %>
<%= end_form_tag %>
...creates this HTML colde:
<form action="/en/bookings/create" method="post">
<!--[form:artist]-->
2006 Sep 15
7
OT: TinyMCE in Rails
I''m having a problem getting the text area the size I want it to be.
In my view at the top I have this init calls
<script type="text/javascript" >
tinyMCE.init({
mode: "textareas",
theme: ''advanced'',
theme_advanced_toolbar_location: ''top''
});
</script>
Then in my form:
<%= text_area
2006 Apr 21
3
rjs in multiple ajax page
Sorry for the long explanation but I''m having trouble integrating rjs into my
form page. Here''s my page:
<div id="posts">
<ul id="post_list"><%= render :partial => ''list_results'', :collection =>
@posts %></ul>
<p><%= link_to_remote(''+'',
:url => {:action =>