I was wondering if something general like catching the redirect and
sending back some kind of JSON response would work... that's probably
not worth it, anyhow, though.

Kevin

On 12/23/05, Jeff Watkins <[EMAIL PROTECTED]> wrote:
> I don't know the answer. I do know it's remarkably hard to figure out what
> format the DataController should return and therefore whether to redirect. I
> started out wanted to smear some Ajaxy goodness onto the DataController, but
> that became hard when I realised I couldn't detect whether the request had
> asked for JSON formatted data in a clean way (I suppose I could inspect the
> CherryPy data, but then if I ever get my butt in gear and have the Accept
> header trigger JSON format when it only contains text/javascript, I'll be
> out of luck).
>
>
> On 23 Dec, 2005, at 10:32 am, Kevin Dangoor wrote:
>
>
> That's a very interesting observation. You're right that this doesn't
>
> seem like what you'd want for AJAX. I wonder if there's a general rule
>
> to this, or if it really makes sense for the controller to inspect the
>
> format.
>
>
> --
>
> Jeff Watkins
>
> http://newburyportion.com/
>
>
>
>
> "Just because you have the right to do something, doesn't mean it's the
> right thing to do."
>
> -- Fred Friendly, former president of CBS News
>
>


--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com

Reply via email to