[Prototype-core] Changing the key of a hashvalue

2009-04-23 Thread Benjamin
Hey guys, i miss the functionality of changing the key of a hashvalue. Makes such a functionality sense, for example in the next prototype version? greets benjamin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Pr

[Prototype-core] Re: Changing the key of a hashvalue

2009-04-23 Thread Simon Charette
I have trouble figuring out why you would need such a fonctionnality since hash indexing is based on key value mapping. It looks like a value reassign to me. However, if you have the "oldKey" you can get away with that one line reassign: hash.update({newKey : hash.get(oldKey)}).unset(oldKey); J

[Prototype-core] New findElements with selector API is faulty

2009-04-23 Thread HissingInfernoOfAudio
Hi, I've stumbled onto the case in which we want to perform a selector find on an element with a period in its id: $('my_mail_google.com').down('img') and the result is null, since Selector.findElements alters the selector for the selector API by inserting # and the id into the selector, resulting

[Prototype-core] Re: New findElements with selector API is faulty

2009-04-23 Thread Richard Quadling
2009/4/23 HissingInfernoOfAudio : > > Hi, > I've stumbled onto the case in which we want to perform a selector > find on an element with a period in its id: > $('my_mail_google.com').down('img') > and the result is null, since Selector.findElements alters the > selector for the selector API by ins

[Prototype-core] Re: New findElements with selector API is faulty

2009-04-23 Thread Gabriel Gilini
On Thu, Apr 23, 2009 at 11:16 AM, Richard Quadling wrote: > Interesting. Initially, I thought you can't have a . in an ID, but > http://dev.w3.org/html5/spec/Overview.html#the-id-attribute says only > spaces are disallowed. It's not safe to look at the HTML5 language definition and assume that

[Prototype-core] Re: Accessing form fields within container element

2009-04-23 Thread mr_justin
Interesting that I just posed the same question (more or less) a few days before this: http://groups.google.com/group/prototype-core/browse_thread/thread/8b3f26ccdcad8460 See guys, I'm not the only one :) -justin --~--~-~--~~~---~--~~ You received this message bec

[Prototype-core] Re: New findElements with selector API is faulty

2009-04-23 Thread kangax
On Apr 23, 10:08 am, HissingInfernoOfAudio wrote: > Hi, > I've stumbled onto the case in which we want to perform a selector > find on an element with a period in its id: > $('my_mail_google.com').down('img') > and the result is null, since Selector.findElements alters the > selector for the sele