What is "inputField"? Is it an object reference (such as form field)
or a string?
On Apr 10, 11:05 am, Gerhard Neuhofer
<neu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi,
>
> i''ve got something like this:
>
> function addTo (inputField) {
>
> var postName = inputField+''Name'';
> new Ajax.Request(''ajax.php'',
> {
> parameters: {postName:name}
> });
>
> }
>
> my problem is that the var name of the post is "postName" an not
> "someInputName"
>
> how can i use the contend of "postName" to be used as name for
the
> post var?
>
> best
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---