I am calling ajax function with :eval and setting up some javascript [from the controller] to be executed [as per :eval option js is executed in the end], something like this:
result = "$('#DebugID').append('<p>" result += "CONTENT" result += "</p>');" return result Now, this works, and it displays <p>CONTENT</p> at the right place. But here is a catch: instead of "CONTENT" I want it to display an object, for example Rows object which is returned by db.select. In other words, whatever comes out when {{=rows}} is specified in html view, I want to send via javascript. Obviously, the following 2 options are grossly incorrect and don't work, for obvious reasons: result += XML(rows) result += "={{rows}}" So, how do I make the stuff display properly as passed over vial javascript? -- 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 web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/b5c204f4-6e99-4503-ab74-508d2d3a8bca%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.