Dave Tolls wrote:As for the problem itself, I can't tell where you expect the comtval to go.
My guess is that the "function" it's supposed to go to is a JavaScript function. Which is a problematic design, since this code is running on the server and knows nothing about JavaScript in the browser. And then, apparently, the resulting HTML is supposed to be returned to the browser, to be handled by some AJAX code.
If that's the case then this design isn't going to work. You'll have to return the
comtval data as part of the HTML and then have the AJAX code call that function. Just as Dave suggested, in fact.