>
> I understand your problem. I don't know how and if you can modify jQuery
> (I use it only for the effects), but I solve that problem by sending
> proper Accept header. If it is application/json, the controller returns
> json data. If it contains text/html (which will also be the case for
> "plain" requests with no JS), it returns templated HTML. I also solve
> errors with http status codes, and the JS (xhr) client that received the
> response will only show the content if it is text/plain, in order to
> avoid inserting entire formatted HTML page into the <div> that shows
> action results.
>

The problem is that I receive (and hence can analyse) only "text", not
XMLHTTPRequest object. So no status code and no means to determine
what I've got: JSON or XML or XHTML. That is drawback of jquery.form
plugin I'm using.

--
Vladimir

>
> Vlad
>
> --
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/pylons-discuss?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to