geoffcox wrote:
> Hello,
>
> I am trying to add items for Ajax.Updater using
>
> var params = new Array();
> params.groupnumber = group_number;
> params.emailaddress = email_address;
>  etc etc
>
> in place of
>
> var params =
> ({groupnumber:group_number,emailaddress:email_address,etc});
> ...
>   
You need to use a vanilla object:

var params = {};
...

see http://prototypejs.org/api/array and  
http://andrewdupont.net/2006/05/18/javascript-associative-arrays-considered-harmful/


- Ken Snyder

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