[Proto-Scripty] prototype.js from 1.5 from 1.6 in Zend Framework

2009-10-08 Thread Romain Dequidt
Hi, I'm trying to replace the Prototype JavaScript framework version (1.5) with the 1.6.0.3 one into a PHP project using Zend framwork, Smarty and Scriptaculus. I do a Ajax.Request according to the parameters from the UserRegistrationForm. The response is sent using this helper method:

[Proto-Scripty] Re: prototype.js from 1.5 from 1.6 in Zend Framework

2009-10-08 Thread Romain Dequidt
://www.thevacancymarket.com - Original Message - From: Romain Dequidt dequidt.rom...@gmail.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Wednesday, October 07, 2009 7:28 PM Subject: [Proto-Scripty] prototype.js from 1.5 from 1.6 in Zend Framework Hi

[Proto-Scripty] Re: 1.5.1 Hash to 1.6.1 Hash compatibility

2009-10-08 Thread Romain Dequidt
My problem (http://groups.google.fr/group/prototype-scriptaculous/t/ 313d3a8b674d5b28?hl=fr) comes from that issue. The errors object is actually a empty array when there is no error. But when I try to create my hash by doing: $H(transport.responseJSON.errors) the result is a weird hash (size()

[Proto-Scripty] Re: 1.5.1 Hash to 1.6.1 Hash compatibility

2009-10-08 Thread Romain Dequidt
Would that be a relevant wrapper? function hash_wrapper(var) { if (var (var.constructor == Array) (var.length == 0)) { return; } return $H(var); } On 8 oct, 15:55, Romain Dequidt dequidt.rom...@gmail.com wrote: My problem (http