[Prototype-core] Lost scope this in class method Ajax onComplete event

2007-12-16 Thread kstubs
Ok, could someoe explain, I'm losing scope for this, see below the line this.ReadResponse(); This has no scope. Why? What does work is the next line, where _PG is the defined object of this class. var PageContent = Class.create({ Read: function(id) { var layer =

[Prototype-core] Re: How to tell if element event is observed

2008-10-05 Thread kstubs
. Crowder tj / crowder software / com On Oct 5, 1:00 am, kstubs [EMAIL PROTECTED] wrote: So, just keep track of them with a typical variable? var myElementIsObserved = false; ... if(! myElementIsObserved) {   Event.observe('myelement','focus',dosomething);   myElementIsObserved == true

[Prototype-core] Delay Documentation

2008-10-17 Thread kstubs
Hi, Thanks for the site! (throwing that out there before my teeny little rant) This page: http://www.prototypejs.org/api/function/delay As demonstrated on the page, I can not get any samples to work. Code breaks, with something to the effect of element style undefined Anyhow, did find

[Prototype-core] Re: Delay Documentation

2008-10-17 Thread kstubs
]. This list is reserved for development purposes. Thank you! Tobie [1]http://groups-beta.google.com/group/prototype-scriptaculous On Oct 17, 9:26 am, kstubs [EMAIL PROTECTED] wrote: Hi, Thanks for the site!  (throwing that out there before my teeny little rant) This page:http