[Proto-Scripty] Re: method ON vs OBSERVE

2011-10-28 Thread Victor
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() {

[Proto-Scripty] Re: What performs better? 30 observers on specific elements or 1 Observer observing every click?

2011-10-28 Thread Victor
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

RE: [Proto-Scripty] Re: An idea from jQuery which might be borrowed to Prototype

2011-10-28 Thread wwwboy
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

[Proto-Scripty] Done but with errors on when page loads.

2011-10-28 Thread DeveloperDavid
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

Re: [Proto-Scripty] Silly Question

2011-10-28 Thread Richard Quadling
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

Re: [Proto-Scripty] Re: Adding CSS-Rules to a styletag in Prototype

2011-10-28 Thread Richard Quadling
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

[Proto-Scripty] Re: Done but with errors on when page loads.

2011-10-28 Thread Victor
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

[Proto-Scripty] Re: Done but with errors on when page loads.

2011-10-28 Thread T.J. Crowder
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