Re: JSON enconding result of Model.validate()

2007-11-02 Thread grimborg
Thanks, that solved it! On Nov 2, 11:30 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-11-02 at 10:02 +, grimborg wrote: > > Hi, > > I'm writing a simple ajax form and I'm having trouble JSON-encoding > > the result of Model.validate(). I always get an error similar to > > "

Re: JSON enconding result of Model.validate()

2007-11-02 Thread Malcolm Tredinnick
On Fri, 2007-11-02 at 10:02 +, grimborg wrote: > Hi, > I'm writing a simple ajax form and I'm having trouble JSON-encoding > the result of Model.validate(). I always get an error similar to > "'This field is required.' cannot be JSON-encoded" > > To verify the posted data i populate the model

Re: JSON enconding result of Model.validate()

2007-11-02 Thread Jarek Zgoda
grimborg napisaƂ(a): > I'm writing a simple ajax form and I'm having trouble JSON-encoding > the result of Model.validate(). I always get an error similar to > "'This field is required.' cannot be JSON-encoded" > > To verify the posted data i populate the model I intend to save and > call valida

JSON enconding result of Model.validate()

2007-11-02 Thread grimborg
Hi, I'm writing a simple ajax form and I'm having trouble JSON-encoding the result of Model.validate(). I always get an error similar to "'This field is required.' cannot be JSON-encoded" To verify the posted data i populate the model I intend to save and call validate(). If there are any errors