|
Re: InPlaceEditor form value: msg#00147lang.ruby.rails.spinoffs
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: | OT - Detect selected text with JavaScript: 00147, David Teare |
|---|---|
| Next by Date: | draggable revert problem: 00147, Sunder |
| Previous by Thread: | InPlaceEditor form valuei: 00147, Brandon Dove |
| Next by Thread: | Re: Re: InPlaceEditor form value: 00147, Brandon Dove |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |