Nah, it doesn't like the 'input.id' as an object key. Object keys must 
be literals.

He'll have to assign that key with .set() before passing the hash into 
the update() function.

- Kev


ColinFine wrote:
>
> On Aug 26, 1:09 am, buda <[email protected]> wrote:
>   
>> I need to put into hash pairs:
>>
>> input1.id : input1.getValue
>>     ....
>> inputN.id : inputN.getValue
>>
>> where N may be from 5 to 25
>>
>>     
> In that case, update is the right tool, and I can't see anything wrong
> with your initial syntax. Could the error be somewhere else? Or might
> you have a stray comma at the end of your object ("h.update
> ({ input.id: input.getValue(), });")?  (IE objects to that, rightly,
> but Firefox is more forgiving).
>
> >
>
>
>
>   


-- 
Kevin Porter
Advanced Web Construction Ltd
http://webutils.co.uk
http://billiardsearch.net
http://9ballpool.co.uk

AJAX Blackjack - real-time multi-player blackjack game with no flash, java or 
software downloads required - http://blackjack.webutils.co.uk



--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to