I have a similar problem to the one described. I've included some (basic) code to explain my problem - any help would be appreciated.
{Page1.jsp}
Code:
...
<INPUT TYPE="text" NAME="userInput"></INPUT>
<INPUT TYPE="button" VALUE="OK" ONCLICK="getList(userInput)"></INPUT>
<DIV id="page1_here"></DIV>
getList (input) {
do httpRequest stuff ...
...
httpRequest.open ('POST', 'Page2.jsp', true);
...
httpRequest.send('input=' + input);
}
{Page2.jsp}
Code:
...
get data from database...
print each record...
followed by out.println("<DIV ID=\"page2_here_" + recID + "\"></DIV>");
...
if (input.equals("domain")) {
out.println ("<SCRIPT>getData('" + input + "');</SCRIPT>");
}
...
getList (input) {
do httpRequest stuff ...
...
httpRequest.open ('POST', 'Page3.jsp', true);
...
httpRequest.send('input=' + input);
}
{Page3.jsp}
Code:
...
get data from database...
print each record...
...
If I just load Page2.jsp directly in a browser, the data from Page3.jsp is loaded fine. However when I try to load Page2.jsp within Page1.jsp it only loads the code generated by Page2.jsp and misses the stuff from Page3.jsp.
Can someone tell me whether this is even possible to do?