[Proto-Scripty] Re: storying and destroying metadata

2010-05-25 Thread mmerlin
1.7 rc2 is supposed to handle the cleanup for you in most cases. See http://www.prototypejs.org/2010/5/13/prototype-1-7-rc2 (use Element.purge) On May 21, 1:06 am, orbiter wrote: > I recently discovered Element.store and Element.retrieve and I'm > wondering a little about the semantics. Mainly I

[Proto-Scripty] Blur, Focus, Event Delegation

2010-05-26 Thread mmerlin
stener( 'blur', DelegationExplorer.directHandler, true ); } else { // IE supports focusin and focusout myRoot.observe( 'focusin', DelegationExplorer.directHandler ); myRoot.observe( 'focusout', DelegationExplorer.directHandler ); } where frm is again an ances

[Proto-Scripty] Re: Blur, Focus, Event Delegation

2010-05-27 Thread mmerlin
Thanks, I went over to lighthouse and found: https://prototype.lighthouseapp.com/projects/8886/tickets/666-make-focus-blur-bubbles so it is 'scheduled' for 2.0 If I need it (beyond my exploration code), I'll just have to roll my own for now :( -- Phil -- You received this message because you a

[Proto-Scripty] Event Delegation matching outside of 'boundary' element

2010-05-29 Thread mmerlin
Environment: Prototype 1.7 rc2; XAMPP on Ubutnu 10.4 (running as VirtualBox vm); browsers: FF3.6.3 (localhost on Ubuntu 10.4); FF3.6.3 (Win XP SP3 over lan); IE8.0.6001 (Win XP SP3 over lan) Using Element.on [$(ele).on( 'click', '.special', callback);] triggers a callback for clicks inside of ele

[Proto-Scripty] Re: Blur, Focus, Event Delegation

2010-05-29 Thread mmerlin
I wrote my own code from a completely different direction before I saw this. That code adds new events to the standard code that do bubble. It looks cleaner than what I did. I added a 'wrapper' around the standard code, with extra handling for the problem cases. I also added a descendant check t

[Proto-Scripty] Re: Event Delegation matching outside of 'boundary' element

2010-05-29 Thread mmerlin
I don't think you understood my question. I understand that event delegation means that events bubble up from the element the event actually occurred on, to the ancestor element that the event [listener] was attached to. And that the events that reach that listener / handler are filtered based on

[Proto-Scripty] Re: Need Help with timer counter.

2010-08-06 Thread mmerlin
Multiple counters are not *necessary* for this, assuming you mean count down timers to the end of the bidding for each item. Just need to display (formatted) the difference between 'now' and the bid end time (watching for timezone differences). If you mean counters for different numbers of bids f

[Proto-Scripty] Re: Is there a way to determine if a parameter to a function is a Template?

2010-09-06 Thread mmerlin
TJ, that explains the symptoms I was getting when writing a piece of *Reflection* code to explore the DOM and javascript library code. I made it work, but did not understand WHY I needed to massage some things to get reasonable results. Got to keep learning :) -- Phil -- You received this messa

[Proto-Scripty] Re: Finding Class methods

2011-03-18 Thread mmerlin
greg, Nothing to do with Prototype. Standard javascript / DOM > If I do: > for (m in c) console.log(m) > I get a nice list of all variables and methods, but typeof m always > returns 'string'. for (a in b) always sets 'a' to be a string. It is the 'name' of the property in 'b'. Try console.l