The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Nathan <XGamer...@gmail.com>
Date: Sun, 31 May 2009 00:50:07 -0700 (PDT)
Local: Sun 31 May 2009 08:50
Subject: Re: Is it possible to execute behavior function for element from outside of this behavior?
I agree with Morgan's take which is to use Event.delegate within a
container element to easily have access to both the span and the form from a single behavior. Otherwise, you can indeed execute a behavior outside the behavior. i.e
var example = new Link.Toggle($('some-element'));
then
example.onclick(event);
or you can access the instances of a behavior and find the right one
Link.Toggle.instances().first().onclick(event); You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||