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?
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:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
szimek  
View profile   Translate to Translated (View Original)
 More options 27 May, 10:33
From: szimek <szi...@gmail.com>
Date: Wed, 27 May 2009 02:33:12 -0700 (PDT)
Local: Wed 27 May 2009 10:33
Subject: Is it possible to execute behavior function for element from outside of this behavior?
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.

Do you have any other ideas how to solve it?


    Reply to author    Forward  
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.

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