I used ajax's post method in "a.htm" to make a query request to a servlet page, this servlet page processed the query and report the result to another html page, "b.htm". How do I write it?
Printable View
I used ajax's post method in "a.htm" to make a query request to a servlet page, this servlet page processed the query and report the result to another html page, "b.htm". How do I write it?
Seeing your code would help us to understand.
What ever the page returned by servlet should have unique ids for each of its page elements. By using getElementById method you can update the elements as the way you want it.
Ex:
getElementById('elementId');
getElementById('textBoxId').value = 'SomeText';
Thanks
Poops