Leave the quotes off of the variable when you are setting the value, and you 
should have it working (assuming that "field" is the ID of an input on your 
page. It's also safer to use $('field').getValue() or the shortcut $F('field') 
because that works around some edge cases in older browsers.

Walter

On Dec 2, 2012, at 3:55 PM, Laurent Barre wrote:

> Hi, 
> 
> I don't know,it's possible ?
> 
> I have this :
> 
> param : { field_value : "$('field').value" }
> 
> 
> and in function I try to :
> 
> alert(param.field_value);
> 
> but the reponse is the string $('field').value.
> 
> I'd like have the value of the field.
> 
> 
> Regards
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Prototype & script.aculo.us" group.
> To post to this group, send email to prototype-scriptaculous@googlegroups.com.
> To unsubscribe from this group, send email to 
> prototype-scriptaculous+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/prototype-scriptaculous?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to