posted 6 years ago
Hi,
I have the following requirement:
I have a servlet that calls an ajax script and accordingly displays the result in a table. When I first load the page , I need to hide the table and once I click on a button 'Charge' I need to call the ajax function and display the result in the table by making it visible ? How do i achieve this ? Any help is appreciated.
Following is snipped of my existing code
My ajax script:
I have the following requirement:
I have a servlet that calls an ajax script and accordingly displays the result in a table. When I first load the page , I need to hide the table and once I click on a button 'Charge' I need to call the ajax function and display the result in the table by making it visible ? How do i achieve this ? Any help is appreciated.
Following is snipped of my existing code
My ajax script:
posted 6 years ago
-
2
-
-
-
-
CSS. Make the table hidden until script makes it visible.
Why are you building up HTML in servlet?
Gather the data in the servlet then forward to a JSP to format the table HTML.
Why are you building up HTML in servlet?


We begin by testing your absorbancy by exposing you to this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
|