|
Re: Re: InPlaceEditor form value: msg#00153lang.ruby.rails.spinoffs
Thanks for pointing that out -- I imagine this was my oversight and not something missing from the docs. The strange behaviour exhibited by the different browsers (ie. it actually working in Firefox) was throwing me for a loop. ________________________________________________ Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag ---- On Wed, 30 Nov 2005, Jon Tirsen (jon-fQK1VBTDpnXQT0dZR+AlfA@xxxxxxxxxxxxxxxx) wrote: > Sorry, the function takes two arguments, first the form and then the > actual value of the field so it needs to look like this: > function(form, value) { return 'name=' + value;} > > Is there any documentation out there with the incorrect form of the > function that I need to update? > > On 11/30/05, Brandon Dove <bcdove-HTy/uMP4gIzQT0dZR+AlfA@xxxxxxxxxxxxxxxx> > wrote: > > As I understand it the name of the <input> element created when > > using the InPlaceEditor is "value". > > > > When creating an instance of Ajax.InPlaceEditor I have a > > callback function that looks like this (to send the value using > > a different parameter name): > > > > function(value) { return 'name=' + value;} > > > > Using etheral to see what's getting sent back to the server I > > see that the value is: > > > > [object] > > > > If I update my callback function to: > > > > function(value) { return 'name=' + value.value;} > > > > the value sent to the server is: > > > > undefined > > > > This is behaviour I've noticed using IE6 and 1.5rc5. I notice > > similar behaviour in Firefox *however* if my callback function > > looks like this: > > > > function(value) { return 'name=' + value.value.value;} > > > > The correct value is sent to the server. > > > > Anyone have any suggestions or working examples? This has been > > stumping me for too long. > > > > Cheers, > > > > Brandon > > > > ________________________________________________ > > Get your own "800" number > > Voicemail, fax, email, and a lot more > > http://www.ureach.com/reg/tag > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@xxxxxxxxxxxxxxxx > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Odp: draggable revert problem: 00153, Grzesiek Slusarek |
|---|---|
| Next by Date: | SlideUp/SlideDown errors in FF 1.5?: 00153, Duane Johnson |
| Previous by Thread: | Re: InPlaceEditor form valuei: 00153, Jon Tirsen |
| Next by Thread: | draggable revert problem: 00153, Sunder |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |