Your Account
Community
Topics (Upcoming)
More |
View story
Symfony: return javascript response
http://feedproxy.google.com/~r/symfony/planet/~3/jDyuhREVmwk...
Submitted by
narko
4 months, 6 days, 4 hours agoThis is an old trick, but I still find it useful and will post it here in case it will help other symfony developers out there. If you are using the prototype.js library for your ajax requests, the Ajax.Request (and similar) utility methods will automatically evaluate the server’s response as javascript if the response has the ‘text/javascript’ content-type header...
Tags: none
|