Dammit, you beat me by one minute! lol

Christophe Porteneuve wrote:
Hey there,

Daniel Eben Elmore a écrit :
  
parameters: { 'group-' + id: $('group-' + id).value } 
    

Yeah, literal syntax won't cut it.  Use the [] operator on a 
pre-declared variable:

var params = {};
params['group-' + id] = $F('group-' + id);
...
parameters: params

  

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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