[Proto-Scripty] Re: finding absolute position of an element / IE7 browser detect?

2010-12-16 Thread doug
On Dec 16, 7:37 am, RobG wrote: > On Dec 16, 12:36 am, doug wrote: > [...] > > > Any ideas on how I can do this without an IE7 browser detect? > > Let me know if this works in IE 7: > > http://www.cinsoft.net/position.html> > > -- > Rob I can't get that one to work for me. Oh well... Wish p

Re: [Proto-Scripty] Can I change what new [someClass] will return?

2010-12-16 Thread Richard Quadling
On 16 December 2010 16:36, Luke wrote: > Hi, > > if you define a Class like > > -- > var TestClass = Class.create({ >        initialize: function(element) { >                element = $(element); >                this.doFunkyStuffWithElement(element) >              

Re: [Proto-Scripty] Is there a way to get the name of a class from within the class?

2010-12-16 Thread bernard
I truly wish some people would take the trouble to buy a javascript book instead of off-topic-posting in this group... meh. b. Intellectual honesty consists in taking ideas seriously. To take ideas seriously means that you intend to live by, to practice, any idea you accept as true. [Ayn Rand]

[Proto-Scripty] Is there a way to get the name of a class from within the class?

2010-12-16 Thread Luke
Hi, If you define a class like var MyCoolClass = Class.create({ initialize: function() { // find out classname here } }); can you get the name of the class from within itself? After all it's just a variable-name, but is it somehow accessible? Thank you Lukas -- You received this mes

[Proto-Scripty] Can I change what new [someClass] will return?

2010-12-16 Thread Luke
Hi, if you define a Class like -- var TestClass = Class.create({ initialize: function(element) { element = $(element); this.doFunkyStuffWithElement(element) return element; }, doFunkyStuffWithE

[Proto-Scripty] Re: finding absolute position of an element / IE7 browser detect?

2010-12-16 Thread RobG
On Dec 16, 12:36 am, doug wrote: [...] > Any ideas on how I can do this without an IE7 browser detect? Let me know if this works in IE 7: http://www.cinsoft.net/position.html > -- Rob -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us"