Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Is it possible to execute behavior function for element from outside of this behavior?

View Parsed - Show only message text

MIME-Version: 1.0
Received: by 10.150.192.4 with SMTP id p4mr577306ybf.26.1243416792906; Wed, 27 
	May 2009 02:33:12 -0700 (PDT)
Date: Wed, 27 May 2009 02:33:12 -0700 (PDT)
X-IP: 87.239.221.162
User-Agent: G2/1.0
X-HTTP-UserAgent: Opera/9.63 (X11; Linux i686; U; en) Presto/2.1.1,gzip(gfe),gzip(gfe)
Message-ID: <e5f7d6a7-f56c-4d32-b9c3-588b3dc93a36@a7g2000yqk.googlegroups.com>
Subject: Is it possible to execute behavior function for element from outside 
	of this behavior?
From: szimek <szi...@gmail.com>
To: Low Pro <low-pro@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi,

I made a behavior for span elements that simply toggle themselfes
between add/cancel state and additionally toggle some element on the
page (i.e. a form) on onclick event - http://gist.github.com/118542.

It works fine, but the problem is when this is used to show i.e. a
form. In this case I'd like onclick event handler to be executed when
the form is submitted, so that I can hide the form and update span
element. The main problem is that I can't simply fire onclick event on
span element, which would solve the problem.


Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google