Awesome. Hashtable style! Thx!

On 29 Mar, 10:04, Christophe Porteneuve <[EMAIL PROTECTED]> wrote:
> push is for arrays, not vanilla object.
>
> Try something like this:
>
> var params = {};
> ...
> params["settings[" + counter + "]"] = inputs[i].id + ":" +
>    inputs[i].value;
> ...
>
> 'should do the trick.
>
> --
> Christophe Porteneuve aka TDD
> [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to