I for one am very glad to see that
change. I did something similar in my own code for form elements and forms.
It was the first thing I did on prototype, actually. I made SmartForm and
SmartForm.Element objects that did required field checking, and a few other
things.
Good times. Maybe I should genericize
that stuff and clean it up and make it available. Then again, I don’t know
when I’d have time.
Greg
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ed C.
Sent: Friday, April 07, 2006 10:28
AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: Re: [Rails-spinoffs]
Effect.toggle error in 1.6.1
The Element object is
extend()'d in Prototype 1.5, so instead of doing
"Element.meth(element)" you can do "$('id').meth()"
On 4/6/06, Jeremy
Kitchen <[EMAIL PROTECTED]>
wrote:
I have this line of code:
new
Effect.toggle(document.getElementsByClassName('modarea',
Event.findElement (ev,'li')), 'blind');
I've confirmed that the Effect.toggle is indeed getting the proper element,
however, I'm getting this in my _javascript_ console:
element.visible is not a function (effects.js: line 153)
I look at line 153 and see:
Effect[element.visible() ?
should that be:
Effect[Element.visible(element) ?
instead?
-Jeremy
--
Jeremy Kitchen ++ [EMAIL PROTECTED]
In the beginning was The Word and The Word was Content-type: text/plain
-- The Word of Bob.
And the lord said unto John; Come forth and receive eternal life. John came
fifth and won a toaster.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
|
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs