[Prototype-core] Shrinksafe and Prototype 1.6 ; suggestion for the documentation

2007-11-12 Thread Sylvain ZIMMER
Hello, I'm aware that the core team doesn't want to officially support a packed version of Prototype and I understand why. However, I know many developers are still (or should be..) using shrinksafe, jsmin or others to pack Prototype. I think that alone justifies the inclusion of some notes abou

[Prototype-core] Re: Any reasons for not including String#size ?

2007-09-30 Thread Sylvain ZIMMER
Thanks Andrew. As I said, I just posted because I wondered because it wasn't included, no need to take it as a "feature request" ;-) I'm also interested on other insights from Core :) cheers On Sep 30, 9:03 am, Andrew Dupont <[EMAIL PROTECTED]> wrote: > The "size" method comes from Enumerable#

[Prototype-core] Re: Any reasons for not including String#size ?

2007-09-29 Thread Sylvain ZIMMER
007, at 4:55 PM, Jeff Watkins wrote: > > > > > Maybe you've heard of the length property on String? > > > Why on earth would you need a size method? > > > On Sep 29, 2007, at 8:45 AM, Sylvain ZIMMER wrote: > > >> Hi all, > > >> I was a bit

[Prototype-core] Any reasons for not including String#size ?

2007-09-29 Thread Sylvain ZIMMER
Hi all, I was a bit surprised not to find a size() method on String (like Array, Enumerable, Hash, ...) So maybe there is a good reason not to (and I'd like to know it ;-), but wouldn't it be nice to have String.prototype.size = function() { return this.length; } so that we can call s

[Prototype-core] Re: Prototype.insertScript? (with code)

2007-05-19 Thread Sylvain ZIMMER
Works as-is in IE6, but I don't have any other version right now, sorry. Should work on any IE5.5+, though. What about KHTML, can someone test? On May 19, 12:42 pm, "Mislav Marohnić" <[EMAIL PROTECTED]> wrote: > On 5/19/07, Sylvain ZIMMER <[EMAIL PROTECTED]> wrote: > > > > > as the > > and the

[Prototype-core] Re: Prototype.insertScript? (with code)

2007-05-19 Thread Sylvain ZIMMER
amp; callback && navigator.userAgent.match(/AppleWebKit\/([0-9]+)/)[1]<522) { etc... On May 19, 12:42 pm, "Mislav Marohnić" <[EMAIL PROTECTED]> wrote: > On 5/19/07, Sylvain ZIMMER <[EMAIL PROTECTED]> wrote: > > > > > as the > > and the

[Prototype-core] Re: Prototype.insertScript? (with code)

2007-05-19 Thread Sylvain ZIMMER
Hi Tobie, About the defer:true flag, I didn't see any effect with or without it but as defer support looks quite inconsistent between browsers, I thought it wouldn't hurt to set the value explicitly.. Thanks anyway for the Element syntax! It's much clearer ;-) On May 19, 12:48 am, Tobie Langel

[Prototype-core] Re: Prototype.insertScript? (with code)

2007-05-19 Thread Sylvain ZIMMER
Hi Mislav, The point of the iframe hack is to trigger the onload event. The js code won't be executed there in any way ; it is executed as in the other browsers, when the

[Prototype-core] Prototype.insertScript? (with code)

2007-05-18 Thread Sylvain ZIMMER
Hi again, Here is some beta code I've put together that loads a script after page load. It has these features : - cross-domain - Has a callback (onload) parameter - Tested on FF2, Safari2 & Opera 9.10 (should also work on IE5+) It could have many uses, including parsing the external scripts i

[Prototype-core] Re: Community Repository

2007-05-17 Thread Sylvain ZIMMER
Well I think *some* level of support would be good. Random ideas : - create a prototype-addons list? - without svn/trac it will be quite difficult to have consistent qa. I know it would be a bit difficult, but couldn't the "best" addons (like scriptaculous) be added in a prototype-addons/ direct

[Prototype-core] Re: Any interest in a Delayed Shift Queue class for prototype?

2007-05-17 Thread Sylvain ZIMMER
;[EMAIL PROTECTED]> wrote: > On 5/17/07, Sylvain ZIMMER <[EMAIL PROTECTED]> wrote: > > > > > DS Queue classes are very interesting on all browsers when dealing > > with large queues. > > > Could there be a "Queue" class just like we have Hash? >

[Prototype-core] Any interest in a Delayed Shift Queue class for prototype?

2007-05-17 Thread Sylvain ZIMMER
Hi, As explained here : http://www.safalra.com/programming/javascript/queues/ DS Queue classes are very interesting on all browsers when dealing with large queues. Could there be a "Queue" class just like we have Hash? Would it be useful to other people? (I know it is at least to me ;-) I've