[Prototype-core] Re: simulated DOMContentReady event

2007-08-31 Thread Mislav Marohnić
On 8/31/07, Jeff Watkins [EMAIL PROTECTED] wrote: For example, imagine you have a widget which would like to perform its initialisation only after the DOM is ready. It registers a listener for contentready on the document. All is fine. Now let's add Ajax to the mix. The widget is

[Prototype-core] Re: simulated DOMContentReady event

2007-08-31 Thread Andrew Dupont
On Aug 31, 2:12 am, Mislav Marohnić [EMAIL PROTECTED] wrote: On 8/31/07, Jeff Watkins [EMAIL PROTECTED] wrote: Let me see if I'm getting this correctly. You are saying that you need to inject content in the DOM received by XHR ... while the current page is still being loaded? That is

[Prototype-core] How to get back to the detailed explanation about mistakes.

2007-08-31 Thread jena
How to get back to the detailed explanation about mistakes. Please help me,thanks! I used prototype.js version is 1.6.0_rc0 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this

[Prototype-core] Re: iterable/$A

2007-08-31 Thread Samuel Lebeau
On 8/31/07, Nicolás Sanguinetti [EMAIL PROTECTED] wrote: As discussed in http://redhanded.hobix.com/inspect/showingPerfectTime.html String.prototype.replace with a callback is broken in Safari (at least up until v2). Ah yes, the Safari issue. Why not simply do : var $A =

[Prototype-core] Re: simulated DOMContentReady event

2007-08-31 Thread Ken Snyder
Andrew Dupont wrote: ... Imagine you've got a page with some inline code that assigns stuff to DOMContentLoaded. Now imagine it's a fragment, not a full page, and you're loading it via Ajax. Jeff, my suggestion is to write your own Event.onReady function (or something like it) that wraps

[Prototype-core] Re: How to get back to the detailed explanation about mistakes.

2007-08-31 Thread Mislav Marohnić
On 8/31/07, jena [EMAIL PROTECTED] wrote: How to get back to the detailed explanation about mistakes. Jena, We don't understand your question. However, this looks like a support request and we don't do those on this mailing list. We only discuss development of core Prototype framework. Ask

[Prototype-core] Class.from(base) - for real class inheritance ?

2007-08-31 Thread Robert Katić
I suggest this improvement for more correct OOP in Prototype. var Class = { create: function() { return function() { this.initialize.apply(this, arguments); } }, from: function(base) { var klass = Class.create(); //copy static attributes? for (var key in base)