[Prototype-core] Ajax.request's bug:after expending Object.prototype,it will not work

2007-11-12 Thread KKK
I expended the Object.prototype to add some global attributes and methods,then Ajax.request didn't work. Trace the question , I find the reason: for (var name in headers){ this.transport.setRequestHeader(name, headers[name]); } these codes (var name in headers) got all the att

[Prototype-core] Re: Ajax.request's bug:after expending Object.prototype,it will not work

2007-11-12 Thread KKK
Sorry. The 'Header' is a JSON Object. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, sen

[Prototype-core] Re: Ajax.request's bug:after expending Object.prototype,it will not work

2007-11-12 Thread KKK
Thank you. I saw the thread. I asked a same question. I want to add a function:hashCode to all Javascript Object.if prototype can't fix the question ,i had modify the prototype.js by myself. On 11月13日, 上午1时07分, Wiktor Ihárosi <[EMAIL PROTECTED]> wrote: > > I think Ajax.request must fix this bug.

[Prototype-core] Re: Ajax.request's bug:after expending Object.prototype,it will not work

2007-11-12 Thread KKK
everybody ,thanks . I had carefully replaced 'for in loops' all of the prototype.and run testcases sucess. In my apps,i never write 'for in loops'.that's a rule of my program.C/ Java/C++/C#,i always use "for(int i=0;ihttp://groups.google.com/group/prototype-core?hl=en -~--~~~