#270: [PATCH] Auto .js format for Ajax request!
-------------------------------------+--------------------------------------
Reporter: firodj | Owner:
Type: patch | Status: closed
Priority: major | Milestone: 1.0.1
Component: Action Controller | Resolution: invalid
Keywords: ajax format js template |
-------------------------------------+--------------------------------------
Changes (by bermi):
* status: new => closed
* resolution: => invalid
Comment:
Setting format to js results in sending a text/javascipt response which is
not always the desired effect for Ajax requests (xml, json, html for
replacements...).
The simplest way to get the response as js is to use the js extension in
your request:
{{{
/users.js
}}}
will render users.js.tpl and will respond with the expected
text/javascript header.
Closing ticket. Feel free to open it again if you find the proposed
approach does not work for most cases
--
Ticket URL: <
http://trac.akelos.org/ticket/270#comment:1>