Here is the code (borrowed from some project) I'm using for bubbling focus
and blur events:
/**
* Bubbling focus:in and focus:out events.
* Usage:
* document.on(focus:in, selector, focusHandler); // on focus
* document.on(focus:out, selector, blurHandler); // on blur
*/
(function() {
you suggest adding one special class or attribute to all clickable
elements, so that in my observer I can check for that class/attribute in
the very first line minimizing the amount of if statements
yes
PLUS you suggest to delegate the triggered event to the [clicked] element
to
It’s depend on your mood :)
From: prototype-scriptaculous@googlegroups.com
[mailto:prototype-scriptaculous@googlegroups.com] On Behalf Of Victor
Sent: Thursday, October 27, 2011 11:52 PM
To: prototype-scriptaculous@googlegroups.com
Subject: [Proto-Scripty] Re: An idea from jQuery which might
I am using prototype 1.7 and get an error on line 5736
element.fireEvent(event.eventType, event);
and 5988
return $(parentElement ||
document.body).getElementsByClassName(className); prototype.js
element.fireEvent(event.eventType, event);
The error I receive is
Webpage error details
User
Locally, I had to put delays on my server code to actually allow this
to be visible. Once I was convinced things were working, I removed the
delay and I don't think I ever so it now.
On 11 October 2011 15:08, Phil Petree phil.pet...@gmail.com wrote:
I'm with you Richard.
I have a hidden div
On 20 October 2011 13:30, Luke lukas.bomb...@googlemail.com wrote:
Thanks, Joe T.
Walter: The problem is, that on my page the user can add/remove contents and
also change the styles of those contents dynamically using JS. Now if you
set a Style to certain elements, either via changing the
You are trying to invoke methods on not extended element in IE8, right?
E.g. instead of $(element).fire(some:thing) you are using
element.fire(some:thing).
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To view this discussion on
On Oct 28, 2:31 pm, DeveloperDavid d.smith38h...@gmail.com wrote:
Message: Object doesn't support this property or method
Have a read through this tutorial from the prototypejs.org site:
http://prototypejs.org/learn/extensions
Elements can be automagically extended on other browsers, but not