to be fair, I think you encountered a minor glitch........ response.json() now sets the content-type to application/json (something that your app should have done already, but probably overlooked). Returning a json string with text/html as content-type made jquery not aware that that string was a json, but only a string in the need to be parsed. Moreover, JSON(something) is NOT a jquery function, it's a browser one, and not available on all browsers. That piece of code would never have worked on e.g. IE7. Now the response is instead a json string "signalled" to be a json object, and jquery parses it correctly
<tl/dr> for the future...Don't EVER overlook content-type. Read about "dataType" on jquery's ajax(). -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

