Hello,

Thanks, for your answer.
I think that I didn't give a good explanation.

I found my answer, because I wanted to keep the update of the value.
Your solution is good, but the value wasn't dynamic.

I use "eval".


param : [ "$('field').value" ]


function (element) {

var test = eval(element.param[0]);

alert(test);

}

best regards.




2012/12/3 Walter Lee Davis <wa...@wdstudio.com>

> 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.
>
>

-- 
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