var idx = itt + 1; var name = 'p_Value' + idx.toString(); var h = {}; h[name] = names[itt]; On Jul 9, 2011 4:24 AM, "kstubs" <kst...@gmail.com> wrote: > OK, I figured it out. Here is my solution, and ultimately I need an Object, > as you can see I'm extending args in the end, so is there a way to avoid > creating the hash, then casting the hash to an object? > > var idx = itt + 1; > var name = 'p_Value' + idx.toString(); > var h = $H(); > h.set(name, names[itt]); > Object.extend(args, h.toObject()); > > -- > You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. > To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/Sdi2kTKvSBsJ. > To post to this group, send email to prototype-scriptaculous@googlegroups.com. > To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. >
-- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.