On Nov 26, 12:10 pm, laurin1 <[EMAIL PROTECTED]> wrote:
> Ok, I know why that is happening, it's because I passed the function
> as HighlightElementOn2($sEle, $sChangeText), instead of
> HighlightElementOn2. So the question is, how do I pass arguments via
> observe?

Event.observe($sEle, 'mouseover', function() {
  HighlightElementOn2($sEle, $sChangeText);
});

Oh, and try not to uppercase variables if they are not intended to be
used as constructors.

[...]

--
kangax
--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
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