Your Account

Community

Topics (Upcoming)

More

View story

2
0
Symfony: return javascript response
http://feedproxy.google.com/~r/symfony/planet/~3/jDyuhREVmwk...
Submitted by narko 4 months, 6 days, 4 hours ago
This 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
Add your comment

If you already have an account, sign in:

Email address:
Password:

If you don't, just complete these fields: (or join SymfonyLab for free)

Your name:
Your site: (optional)

Your comment:

(You have up to 5000 characters left)

Can you see the 5 most prominent letters/numbers in this image? (case insensitive)

Please enter them here:

« go back

Home | Tools | Help & FAQ | About SymfonyLab | Contact us

Âé SymfonyLab 2007

Powered by coRank.com