Hi
Currently , I have a javascript code that opens a child window. This child window is a Java Server Page called showdata.jsp that uses some data from the database.
I have used this function to open my page :
<script language="JavaScript">
function open_a_window(){
childwin = window.open("showdata.jsp","dataname", "height=300,width=100");
</script>
Ideally, a servlet should be executed to do the business logic and extract the data that will be displayed on showdata.jsp. Moreover, the user may perform search in the child window, to filter or find the results returned. My questions are as follows:
1. How to run servlet from Javascript that does the logic and then the results are displayed in showdata.jsp (as a child window)?
2. How to go about filtering or finding results in showdata.jsp while it is open ? what is the recommended method? because the results have a check box next to them and when user choses and closes window they are reported back to the main JSP which opened the child JSP.
Any suggestions, reading materials, code , etc is very appreciated.
Thanks in advance
Agapito