From the above code i want to pass the value comtval as a parameter to the function saveEditComment(),and then send this whole html table as response to ajax response,i am getting the response but i could not get the comtval value ,it is also just appended as a string value.
Please find the response from ajax side
can anyone please help me out on how to pass the argument value also.
This probably ought to be in the Servlets section.
As for the problem itself, I can't tell where you expect the comtval to go.
Just to be clear on one thing, though. Do you have to do the HTML inside the servlet? Can you not use JSPs to produce this fragment?
Or even simply return all the data as JSON and let the front end sort it out?
Dave Tolls wrote:As for the problem itself, I can't tell where you expect the comtval to go.
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.
I can't take it! You are too smart for me! Here is the tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database