bgates
2007-Sep-06 08:05 UTC
Ajax.Updater isn''t posting my form right (prototype > 1.5.0rc0)
I have a form with one text input in it, and an observer on the form that should send the input to the server and echo it back to the page: ##in view## new Form.EventObserver(''formtest'', function(element, value) { new Ajax.Updater(''result'', ''/test/testing'', {asynchronous:true, evalScripts:true, parameters:value})}) ##in controller Test## def testing render :text => "#{params[:test]}" end -it doesn''t work with prototype 1.5.1.1 or 1.6.0rc0, tested in FF 2 and IE6. Looking in the Firebug console, the Post parameter looks like ''test 1'' when using prototype 1.5.0rc0 (which works to update the page), but the same parameter looks like ''test=1'' when using newer prototypes. Looking in the Firebug Script/Watch panel, I can see each of the Updaters right before they send data to the server (stopping 1.5.0rc0 at line 689 and 1.6.0rc0 at line 1258 and then stepping through each of them), and I don''t see any difference between them. Is anyone else able to observe a form? Can anyone explain what''s happening here? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---