[Prototype-core] Re: Prototype in 10 steps... what are they?

2008-11-19 Thread Yanick
I agree with Jerod about the binding part. Here's the modified list that I would suggest (probably that was my own learning curve) : 1. Master the $ function 2. Use instance methods to perform common tasks on elements 3. Master event observing 4. Use Enumerable to manage collections 5. Master

[Prototype-core] Re: function for script loading

2008-11-19 Thread Tobie Langel
Why not use JSLoad directly ? Best, Tobie On Nov 19, 12:41 pm, Yaffle [EMAIL PROTECTED] wrote: hello I can't find in prototype.js function, that can load javascript such as jsload http://code.google.com/p/jsload/downloads/list It may be very useful. How about add to prototype lite

[Prototype-core] function for script loading

2008-11-19 Thread Yaffle
hello I can't find in prototype.js function, that can load javascript such as jsload http://code.google.com/p/jsload/downloads/list It may be very useful. How about add to prototype lite version of this function? --~--~-~--~~~---~--~~ You received this message

[Prototype-core] Re: Making Joose compatible with Prototype

2008-11-19 Thread kangax
On Nov 15, 4:48 pm, Malte Ubl [EMAIL PROTECTED] wrote: [...] The source code of the test is located athttp://code.google.com/p/joose-js/source/browse/trunk/tests/12_storag... Interestingly the statement at line 49 succeeds. (It stringifies a Joose object to JSON and and deserializes it

[Prototype-core] Re: Making Joose compatible with Prototype

2008-11-19 Thread Malte Ubl
Hey, is Prototype designed to use a built in JSON stringification mechanism? The most popular library, json2.js (http://json.org/json2.js), states pretty clearly that the toJSON method is not supposed to return a serialized result (which it would turn into a string) but should rather return

[Prototype-core] Re: Making Joose compatible with Prototype

2008-11-19 Thread Malte Ubl
OK, I turned to reading the docs :) http://www.prototypejs.org/learn/json Although, they refer to a very old version of Crockford's json lib which no longer extends Object.prototype the conclusion probably holds true. Anyway, is there a way to have json2.js and prototype play nice with each

[Prototype-core] Re: Making Joose compatible with Prototype

2008-11-19 Thread Tobie Langel
Very old as in may 2008 ? http://json.org/json.js ;) On Nov 19, 10:10 pm, Malte Ubl [EMAIL PROTECTED] wrote: OK, I turned to reading the docs :)http://www.prototypejs.org/learn/json Although, they refer to a very old version of Crockford's json lib which no longer extends Object.prototype

[Prototype-core] Re: Making Joose compatible with Prototype

2008-11-19 Thread Malte Ubl
Might still be maintained but http://json.org/json2.js has been recommended for quite a while. json.js was severely broken, indeed. On Wed, Nov 19, 2008 at 10:20 PM, Tobie Langel [EMAIL PROTECTED] wrote: Very old as in may 2008 ? http://json.org/json.js ;) On Nov 19, 10:10 pm, Malte Ubl

[Prototype-core] Re: Making Joose compatible with Prototype

2008-11-19 Thread Tobie Langel
I know... only our API was mapped against the original one (which was at the time expected to go as is in ES 4). Thus we choose shorter names to avoid conflicting with the original toJSONString methods. Etc. Now that JSON has been formalized in ES 3.1, we'll be migrating to it probably for