OK! Light is clearly visible at the end of the tunnel.
I'm now able to get callbacks to work under the simplest of cases
using Massimo's replace
('"','\\"') trick. The problem was in the mix of single and double
quotes in the return from the callback. It requires an eagle eye to
pick out the mistakes. That's why I'm gravitating to triple quotes """
around the return string as per Thadeus' suggestion.
After I got the callback to work, I still ran into trouble with
unterminated strings. Basically, any string you want to display can
neither have a '\n' or a '\r\n' character sequence in it, or
javascript will choke. Those are easily gotten rid of with s.replace
('\r\n','') and s.replace('\n','') statements.
So, I'm going to close this issue (and hopefully, it'll stay
closed ;^). Thanks, all, for your generous help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---