logo       

InPlaceEditor form value: msg#00144

lang.ruby.rails.spinoffs

Subject: InPlaceEditor form value

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise