Displaying 20 results from an estimated 2000 matches similar to: "Understanding observe_form..."
2007 Feb 04
0
Very strange observe_form problem
I am doig something very simple here and this is not working correctly.
So any help is greatly appreciated.
I ahve this code in my template:
<% form_for :company_branch, @company_branch, :html => {:id =>
"company_branch_form"} do |f| %>
<%= f.text_field :street1 %>
<%= f.text_field :street2 %>
<% end %>
<%= observe_form("company_branch_form",
2006 Nov 28
1
observe_form, observe_field, dynamic forms help
I made a pretty lengthy post on what I''m doing here:
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/89a2b8e54a874dd9
Short version:
I have a radio_button group of two. If one is clicked another pair of
radio buttons is added, if the other is clicked it is removed.
observe_form does not work for elements added after initial page load.
observe_field does not work
2006 Mar 22
2
observe_form without ajax?
This betrays my lack of javascript knowledge, but is it possible to
watch a whole form for changes and activate some javascript when those
changes occur without any remote request?
That is, I want to do exactly what observe_form does, but without the
ajax call actually happening. I realize I could use the form_tag
:onchange parameter, but that seems to be incapable of doing things like
2006 Jan 09
2
Using RJS templates with observe_form
Hi there,
I''ve been checking out RJS templates, and have been trying to use them
with the observe_form helper.
However, the form values are no longer being passed in the params (as
soon as I point the action to the non-rjs and add the ''update'' clause
everything is working again). Is this expected?
Cheers,
Dave
-------------- next part --------------
An
2006 Aug 15
4
observe_form not serializing form
I want to use observe_form to automatically save notes in a text_area.
This is the code I have:
<form id=''notes_form''>
<%= text_area :contact, :notes, :cols => 40, :rows => 10,
:id =>''notes_text_area'' %>
<%= observe_form(''notes_form'',
:frequency => 1,
2006 May 29
0
nowhere to find a observe_form docu
Do somebody know where to find a real good documentation for the
observe_form? I have some problems with it and find nowhere a
documentation.
--
Posted via http://www.ruby-forum.com/.
2005 Dec 22
0
Observe_form and ssl on IE
Can anyone help with some strange error messages I''m getting on IE when
using observe_form.
I''ve written some code to observe a set of radio buttons and it all works
fine in Firefox but when using IE about 20% of the calls return a
request.status of 12152, ERROR_HTTP_INVALID_SERVER_RESPONSE (and the
occasional 12030, ERROR_INTERNET_CONNECTION_ABORTED). It only happens on
SSL
2005 Dec 23
0
observe_form, ssl and Internet Explorer
Can anyone help with some strange error messages I''m getting on IE when
using observe_form.
I''ve written some code to observe a set of radio buttons and it all works
fine in Firefox but when using IE about 20% of the calls return a
request.status of 12152, ERROR_HTTP_INVALID_SERVER_RESPONSE (and the
occasional 12030, ERROR_INTERNET_CONNECTION_ABORTED).
It only happens on SSL
2005 Dec 29
0
observe_form without an update parameter
I''m using observe_form in a place that does not require any response
from the server. So I do not use an update paramater. But without it
webbrick hangs for a couple seconds and returns a status 500. On
occasion, there will even be an exception in webbrick''s output if I
change the form then quickly click a link before the couple second hang
is done. If a add an update, it
2006 Oct 11
2
Help please with observe_form - not working
My observe_form is basically totally limp. I think it should update without
hitting submit button but even if I hit it , it doesn''t change (doesn''t seem
to post the data).
Can anyone please take a look and see if I"m doing something wrong. TIA
Form:
<% start_form_tag({:action => "livesearch"},
:id => "asearch") %>
2009 Feb 26
8
beginners question
hi group,
I am making a little rails app to experiment with rails. It consists
of one model, item, that represents an item on a todo list.
A todo item has a description, a state (finished or not) and a due
date.
After changing the scaffold screens a bit, I wanted to be able to
have no due date. I tried to do this by making a radio button; if ''no
date'' is selected, the date
2008 May 16
3
radio button observe field only triggers once
Hi,
If i add field observers to radio button fields they trigger once but
then nothing after that. I have multiple fields in a form that i need
to know if one of them changes and which spedific field. Below is an
example of two foelds i tested and they trigger once with the alert but
then nothing after that. I also tried individual observers for each
field test_yes and test_no but with the same
2008 Aug 21
4
radio_button_tag - examining the selected value
Hi All
I have four radio buttons created like this
<%= radio_button_tag :answers, 1, false %> a <br/>
<%= radio_button_tag :answers, 2, false %> b <br/>
<%= radio_button_tag :answers, 3, false %> c <br/>
<%= radio_button_tag :answers, 4, false %> d <br/>
And then I have a link_to tag to invoke a controller function
2006 Jan 27
1
radio_button_tag quirkiness...
...or my ineptitude?
I found that the following is always checking the last ''things'' button
regardless of the value of query.table:
People:<%= radio_button_tag("query", "table", "P") %>
Animals:<%= radio_button_tag("query", "table", "A") %>
Things:<%= radio_button_tag("query",
2012 Apr 18
2
RoR - Search Forms with Checkboxes, display appropriate results
I have a form that allows me to search a hotel by city or name and by
rating through radio buttons. It all works.
However, my hotel model has_one :facility, this facility model is
composed by several boolean fields (for example, roomservice:boolean
restaurant:boolean and so on)
The question is, I want to add checkbox fields for each facility I have
and in the search form, when the user selects
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 06
0
Ajax form results display help
I''m not that familiar with Ajax, so there is a good chance that I''m
doing something incredibly stupid, but here is the issue. I have a
search form that will display results on submit using Ajax callbacks
and cool effects.
Here is the operation that I would like
-User enters data
- On submit of the form, the spinner shows
- If there is an error, the error div is shown and
2007 Oct 11
3
radio_button_tag
Hello
I have a view which have 2 radio buttons :
...
<td style="width:5%">Actuel</td>
<td style="width:10%"><%= radio_button_tag(:actuel, value = "1", checked
= false, options = {}) %>
<td style="width:5%">Last</td>
<td style="width:10%"><%= radio_button_tag(:last, value = "1", checked =
2006 May 02
1
Very simple RJS not working in IE
My HTML:
<div id="search_div" style="display: none;">
<table>
<tbody id=''search_results''>
</tbody>
</table>
</div>
My RJS:
page.insert_html :bottom, ''search_results'', "<tr><td>Test</td></tr>"
page.show "search_div"
Now, everytime this gets called, it adds a
2010 Jan 23
0
Problems with :onchange for radio_button_tag
Greetings,
I''ve been hitting my head to the wall over this for quite a while now
and don''t seem to be able to wrap my forementioned head around it.
Basically I have a list of users in a selection box and I have two radio
buttons: Sort by first name and sort by last name. This is what I have
in my view:
<%= radio_button_tag ''sort_by_last_name'',