Displaying 3 results from an estimated 3 matches for "updateform".
Did you mean:
update_form
2006 Apr 14
3
Updateform with a has_many relationship ?
Hello all,
I would like to be able to update the "amount" of a certain item in
me order list.
The problem I run into is how to define the text_field element.
@order is the current order, which has_many :order_item which in turn
belongs_to :order.
order_item has a field "amount" which should be modified...
What I tried is this below, but I get a undefined method
2006 Feb 27
0
Example code for select_from_db (a.k.a. combo box)
...; select_tag("#{tag}",
options_for_select( choices, selected ))
output << observe_field("#{tag}",
:condition => "escape(value) != ''''",
:url =>
{
:field => :select,
:action => :updateform,
:object => "#{object}",
:method => "#{method}",
:uniqid => "#{uniqid}"
},
:with => "''value=''+escape(value)")
output << content_tag(''span'', ''...
2007 Apr 08
3
Updater and PeriodicUpdater fighting with one another
...e Updater to submit the form.
Both fire, and the PeriodicUpdater completes its first pass and waits.
Then it fires again, and never finishes. I can watch it spin in
Firebug, and it doesn''t stop or return a second time until the Updater
does.
Here''s how I have it set now:
var updateForm = $(''files_update'');
if(updateForm){
updateForm.onsubmit = function(){
Element.show(''spinner'');
if($(''progress'')) new Ajax.PeriodicalUpdater(''progress'',
''progress.php'', {asynchronous:true, frequency:30})...