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}); but get error message from the server saying that the URL is too long so I must be wrong?! Is the var params = new Array(); wrong? Cheers Geoff var params = new Array(); --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
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-/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 -~----------~----~----~----~------~----~------~--~---
> You need to use a vanilla object: > > var params = {};Thanks for that help! Cheers Geoff --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---