Re: YUI file upload and form errors

2008-01-28 Thread grahamu
Update: The info about "normal location" for response data is incorrect. With YUI Connection Manager the response data is always in o.responseText. My problem had something to do with "text/html" mime encoding of the escaped string "". Somehow this was getting changed at the browser to "", and tha

Re: YUI file upload and form errors

2008-01-03 Thread Graham Ullrich
Malcolm, Thanks so much for your suggestion. With that knowledge I found the problem in 10 minutes. The culprit turns out to be the YUI Connection Manager. As it turns out, when handling a file upload they change the location of the returned data. My response gets placed in a totally different chil

Re: YUI file upload and form errors

2008-01-02 Thread Malcolm Tredinnick
On Wed, 2008-01-02 at 15:38 -0800, grahamu wrote: [...] > As an example, the JSON response seen by the javascript might be: > >"{\"valid\": false, \"errors\": {\"options\": \"
    \"errorlist\\">
  • This field is required.<\/li><\/ > ul>\"}}" > > when it should be: > >"{\"vali

Re: YUI file upload and form errors

2008-01-02 Thread grahamu
On Jan 2, 7:13 pm, grahamu <[EMAIL PROTECTED]> wrote: > > On Jan 2, 4:43 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > > wrote: > > > > On Wed, 2008-01-02 at 15:38 -0800, grahamu wrote: > > > > Hi, > > > > I'm having a problem with Django "HTML escaping" JSON data sent in > > > > response to an as

Re: YUI file upload and form errors

2008-01-02 Thread grahamu
> On Jan 2, 4:43 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > > > > On Wed, 2008-01-02 at 15:38 -0800, grahamu wrote: > > > Hi, > > > I'm having a problem with Django "HTML escaping" JSON data sent in > > > response to an asynchronous form submission when the form has an > > > field. F

Re: YUI file upload and form errors

2008-01-02 Thread grahamu
On Jan 2, 4:43 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Wed, 2008-01-02 at 15:38 -0800, grahamu wrote: > > Hi, > > I'm having a problem with Django "HTML escaping" JSON data sent in > > response to an asynchronous form submission when the form has an > > field. Forms that don't have

Re: YUI file upload and form errors

2008-01-02 Thread Malcolm Tredinnick
On Wed, 2008-01-02 at 15:38 -0800, grahamu wrote: > Hi, > I'm having a problem with Django "HTML escaping" JSON data sent in > response to an asynchronous form submission when the form has an > field. Forms that don't have a file field > yield proper responses, and when Javascript is disabled on

YUI file upload and form errors

2008-01-02 Thread grahamu
Hi, I'm having a problem with Django "HTML escaping" JSON data sent in response to an asynchronous form submission when the form has an field. Forms that don't have a file field yield proper responses, and when Javascript is disabled on the browser normal form submissions work as well. I'm using