Re: [Rails-spinoffs] Builder.node label for attribute

2006-07-26 Thread Siegfried Puchbauer
you had a problem withvar label = Builder.node('label', { for: 'id_of_an_input' });? try: var label = Builder.node('label', { 'for': 'id_of_an_input' });hth On 7/25/06, Andreas Wahlin <[EMAIL PROTECTED]> wrote: I've googled a bit, but haven't come up with anything. It seems theBuilder.node chokes o

[Rails-spinoffs] Insert.Top with Class instead of ID

2006-07-26 Thread Tristan Kelley
Hi all, Is there a way to use Insert.Top with a div's class instead of the id? I've tried a couple things, including a combination of document.getElementsByClassName and Insert.Top but just can't get it working. Thanks again! ___ Rails-spinoffs mailing

Re: [Rails-spinoffs] Extending Class.create() for casting objects

2006-07-26 Thread Jay Miller
I have to admit to a hard time understanding a real-world use case for this.  It seems like any situation where the method would fail would be programmer error and need to be fixed, and any situation where it would succeed, it would be unneccessary. Is there something I'm missing here?On 7/26/06, E

Re: [Rails-spinoffs] Silly little bug... should be an easy one...

2006-07-26 Thread Thomas Fuchs
Use: aObjectNames.each(function(o){$(o).setOpacity(0)}); -Thomas Am 26.07.2006 um 08:53 schrieb G r U M P: Hi everyone... thanks in advance for the help... // THE CODE aObjectNames = new Array; for(i=0;i<35;i++){ aObjectNames[i] = 'press_icon'+i; } for(i=0;i new Effect.Opacity(aObje

RE: [Rails-spinoffs] Silly little bug... should be an easy one...

2006-07-26 Thread Hill, Greg
Not sure why that breaks; nothing is screaming at me. However, you may just want to use Element.setOpacity if you don't want it to be a fade effect. It just immediately sets the opacity to the desired setting. I believe this is how you'd write it: Element.setOpacity(aObjectnames[i], 0); Greg

[Rails-spinoffs] Autocompleter onKeyPress behavior for 'return'

2006-07-26 Thread Justin Chen
Is there an option to prevent the 'return' key from autocompleting?  On my application I like having the autocomplete show possible matches for users, but I dont want to force them to use a partial match. Example: 1) User wants to enter "sock" into the textbox2) Autocomplete finds a term "sockpuppe