[Proto-Scripty] query seems to keep returning

2010-05-26 Thread msoulier
Hi, I've never had this problem with prototype before. I'm querying a twisted python web service that I wrote with a simple GET request, returning json, but for some reason the responseText always seems to be . function make_request() { debug(in make_request with url

[Proto-Scripty] new class instance and string is not a function error

2010-05-26 Thread green
Hi group I tried to store a list of Class and fetch those class definition to create new instance in the following way: myclasses = { A: Class.create({...}), B: Class.create({...} ... }; ... for (var i = 0; i myclasses.length; ++i) { var cls = myclasses[i]; var obj = new cls(...); }

[Proto-Scripty] Blur, Focus, Event Delegation

2010-05-26 Thread mmerlin
Not sure if this is a bug report, feature request, help request, or even just a complaint about the state of the world :) Using Prototype 1.7 rc2, I have been exploring event delegation with the new Element#on functionality, using the css selector filter. My initial tests with click (and

[Proto-Scripty] Re: new class instance and string is not a function error

2010-05-26 Thread green
I found the problem. It's not caused by class array actually. The following code demonstrate what I was trying to do: var A = Class.create(...); var B = Class.create(...); Object.extend(B, { A_ext: Class.create(A, {...}), A_list: { A1: Class.create(B.A_ext, {...}), A2:

Re: [Proto-Scripty] Re: query seems to keep returning

2010-05-26 Thread Michael P. Soulier
On 26/05/10 T.J. Crowder said: To allow this, you'd want your server to respond with these headers: Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET Access-Control-Allow-Headers: x-prototype-version,x-requested-with So just to see if this worked, I added support for an