Displaying 20 results from an estimated 49 matches for "observe_form".
2006 Apr 08
0
Understanding observe_form...
Hi all,
I''m trying to understand the workings of the observe_form function.
In my application I have a search form with a number of parameters, and
I want to have a live search counter on screen, so as the user chooses
different parameters, she can see a live count of how many search
results match.
What I''m not clear on is how to use the "with&...
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
updating a DOM element style.
Currently I just put my javascript in :complete and have the ajax render
:nothing => true, but that&...
2007 Feb 04
0
Very strange observe_form problem
...rking 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", :frequency => 1) %>
The params I get when the form changes is:
{"company_branch_id"=>"1", "action"=>"edit",
"controller"=>"admin/company_branches/details"}
This has NONE of the form value...
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 HTML attachment w...
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 => &qu...
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(''note...
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 for radio_buttons except on the first
''click''
It was suggested that I stop observe_field before changes are made to
the form then restart it.
With much searching I found a Event.stopObserving m...
2006 Apr 26
6
Immediate help needed
I have posted this previously also but haven''t received any help.
So, if somebody could look into it and guide..
I want to validate the extension of files that I am uploading.
Like I want only the doc/pdf files to be uploaded..
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
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 p...
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 p...
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 l...
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...
<%=form_remote_tag :loading=&g...
2007 Mar 07
4
Ajax and IE6 - is there some sort of "trick"?
Hi,
I''ve got some Ajax stuff that shows more or less of a complex form based
on a radio button selection. A "radio_handler" controller action is the
action for a form handler. Some seemingly simple "replace_html" fires
as a result of different radio buttons being chosen (which should then
show more or less of the form).
This all works just great on Mac Safari and
2008 Jul 09
4
Auto Postback in Ruby On Rails
in some other language have a concept e.i "auto postback"
So, in Ruby on rails is there any such option e.i "auto postback"
or same as "auto postback"
basically what i want ot do is that i have 2 select box
One for "Industry" and other for "Chemical"
1st we show all the industry in "Industry" select box.
if we select any 1 industry
2008 Jun 19
5
observe_field
I have been trying to pass a collection_select parameter and a text field
parameter to observe_field so that it watches both the parameters
simultaneously.
but what i can see is , when i select some value from drop down and dont
write anything in text field its giving correct results.parameters are also
correct passed, but just after that if i write something in text field that
value also get
2009 Aug 04
6
forms, javascript and ajax - hopefully an easy question
Right now I have a simple form hooked up. Now that the form is smooth
and functional, I want to add a feature that I''m not sure how to
implement.
After a user modifies a form, I''d like to have a visual cue appear
somewhere to show that the form has been changed and needs to be
saved.
It could be a red div at the top of the screen - anything - it is
doesn''t matter.
Just
2006 Apr 03
6
problems with Rails 1.1 observe_field :with serialized
...hen this is made into Javascript, it
wants to do something like
parameters:''Form.serialize(''search_form'')=''+value
It used to work fine and give me
parameters:Form.serialize(''search_form'')
I''m pretty sure the same thing happens with observe_form. Ideas?
Thanks,
Asa
--
Posted via http://www.ruby-forum.com/.
2006 Feb 16
4
newbie question regarding basic AJAX form verification
Hi,
I''m confused about how form verification with AJAX works. Let''s say I have a
''new.rhtml'' view that contains a form with two fields, and the form action is
''create''. Let''s assume that I also want to do some type of data validation on
one of the two fields via AJAX before I submit the form. But since I''ve
already
2009 Jul 29
6
Doubt in nil object with ajax
...javascript_include_tag :defaults %>
</head>
<body>
<%= form_tag nil, { :id => ''search_form'' } %>
<%= text_field ''recipe'', ''name'' %>
<%= end_form_tag %>
<div id="recipe">
</div>
<%= observe_form :search_form, :frequency => 0.5,
:update => ''recipe'',
:url => { :action => ''search_ajax'' } %>
</body>
</html>
below is the error i am getting
Action Controller: Exception caught
Showing *room/search.html.erb* where line *#...