[Prototype-core] waht aboput an "ready" function?

2007-04-23 Thread Christoph Roeder
Hello, I really miss a way to deal with "ondomload" [1] like the "ready" function of jQuery [1] [1] http://www.zelph.com/archives/2005/03/31/introducing-ondomload/ [2] http://docs.jquery.com/Events#ready.28_fn_.29 Can you please add this in the Prototype-way of doing things? :) --~--~---

[Prototype-core] Re: what about an "ready" function?

2007-04-23 Thread Christoph Roeder
Thanks, my fault I forgot to search the tickets. I know every dev. hates this question, me too ;) ...but is there any roadmap for 1.6 or a version with this function? PS: how can I change the subject to >>what about an "ready" function? << ? Thanks On Apr 23, 1:15 pm, "Mislav Marohnić" <[EMAIL

[Prototype-core] Re: what about an "ready" function?

2007-04-23 Thread Christoph Roeder
On Apr 23, 3:30 pm, "Mislav Marohnić" <[EMAIL PROTECTED]> wrote: > On 4/23/07, Christoph Roeder <[EMAIL PROTECTED]> wrote: > > > PS: how can I change the subject to >>what about an "ready" function? > > << ? > > You just di

[Prototype-core] "this" subclasses?

2007-05-05 Thread Christoph Roeder
Hello, I hope anybody can give me a hint why this dosn't work? Thanks in advance var my_test = Class.create(); my_test.prototype = { textarea: 1, add: { txt: function(){ console.log(this.textarea); } } } my_test.add.txt(); --~--~-

[Prototype-core] Re: "this" subclasses?

2007-05-06 Thread Christoph Roeder
Thanks, but one last question: Is this what I try possible, maybe with Prototypes "bind"? On May 6, 12:33 am, "Mislav Marohnić" <[EMAIL PROTECTED]> wrote: > On 5/6/07, Christoph Roeder <[EMAIL PROTECTED]> wrote: > > > > > add: { > &

[Prototype-core] Re: "this" subclasses?

2007-05-06 Thread Christoph Roeder
On May 6, 11:58 am, "Mislav Marohnić" <[EMAIL PROTECTED]> wrote: > I suggest you drop these complex constructs (add.txt.foo.bar) until you > learn more about JavaScript. Can you please give me some keywords or links to sites with such "advanced" topics? Thanks --~--~-~--~~-

[Prototype-core] Re: "this" subclasses?

2007-05-07 Thread Christoph Roeder
Thank you, very interesting site. On May 6, 4:45 pm, kangax <[EMAIL PROTECTED]> wrote: > You can start with some of Doug Crockford's must-read articles > athttp://javascript.crockford.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribe

[Prototype-core] Re: "this" subclasses?

2007-05-07 Thread Christoph Roeder
{ > textarea: 1, > initialize: function() {}, > add: function () { > return { > txt: function() { > console.log(this.textarea); > }.bind(this)} > > } > }; > > var my_test_instance = new my_test(); > my_test_instance.add().txt(); > >

[Prototype-core] Opera and Form.serialize

2007-06-03 Thread Christoph Roeder
Hello, I've a function which is called trough an click-event (defined with Event.observe) on an input-element within a form. Within this function I do this: var element = Event.element(e); var params = element.form.serialize(true); This doesn't work in Opera and Safari

[Prototype-core] Re: Opera and Form.serialize

2007-06-03 Thread Christoph Roeder
On Jun 3, 4:06 pm, "Mislav Marohnić" <[EMAIL PROTECTED]> wrote: > That doesn't make any sense. "element.form.serialize" should work in > FF andOpera because they support native DOM prototypes. It > shouldn't work in IE because the form element is not DOM extended by > Prototype. And now you're tel

[Prototype-core] Re: Opera and Form.serialize

2007-06-03 Thread Christoph Roeder
Yes On Jun 3, 6:54 pm, Tobie Langel <[EMAIL PROTECTED]> wrote: > Are you using Prototype 1.5.1 ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototy

[Prototype-core] Re: Opera and Form.serialize

2007-06-03 Thread Christoph Roeder
Here is what the code looks like: (stripped after the interesting lines) Event.observe(window, "load", function(){ Event.observe("posting-preview", "click", function(e){ Event.stop(e); var element = Event.element(e); var params = element.