Problem with adjacent function in prototype?

Argument passed to event handler (i.e. Function passed to Event. Observe function) is event object, not target element.

Element to which event handler is bound is passed as "this" pointer, so you should use: this. Adjacent('p. Msg').hide().

Thanks for your reply, with the change you suggested, I get the "this. Adjacent("p. Msg").

Show" is not a function" and "this. Adjacent("p. Msg").

De" is not a function" errors in the console. – xain Apr 4 '10 at 14:56 1 You should really read the docs first. Adjacent() returns list of adjacent elements, not adjacent element itself.

Try this. Adjacent('p. Msg')0.hide() if you know that ther is just one adjacent element, or use each() function to call code on every element in list.Prototypejs.Org/api/element/adjacent – el.

Pescado Apr 4 '10 at 15:36.

What el. Pescado says is true. Perhaps you should be using .next() or .previous() instead of .adjacent() if you want to get the item beside the element triggering the event.

Where E* is the minimum of a simple function on 0, oo). Used, then the minimizers form a triangular lattice. Consisting of rotations and translations.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions