Hi,
I have a frameset. One of the frames is populated with servlet results that are based on a form in one of the other frames.
The servlet takes a long time to run. I want to refresh the target frame as soon as the submit button is pressed, so the screen is in its default load-up state while the servlet results are awaited.
On the onClick event of the Submit button, I have added:
parent.myFrame.document.location.replace("myLoadPage.htm"
This does not work. This command does refresh the page when it is used with no relation to the form submit. But in conjunction with the submit, it does not work. However, if I add an alert box immediately after the replace statement, the page is refreshed and then the servlet is called/executed.
What is it about the alert box that allows my page to be refreshed?
Does anyone have an idea of how to do what I want to do?
Thanks so much,
Draug
I have a frameset. One of the frames is populated with servlet results that are based on a form in one of the other frames.
The servlet takes a long time to run. I want to refresh the target frame as soon as the submit button is pressed, so the screen is in its default load-up state while the servlet results are awaited.
On the onClick event of the Submit button, I have added:
parent.myFrame.document.location.replace("myLoadPage.htm"
This does not work. This command does refresh the page when it is used with no relation to the form submit. But in conjunction with the submit, it does not work. However, if I add an alert box immediately after the replace statement, the page is refreshed and then the servlet is called/executed.
What is it about the alert box that allows my page to be refreshed?
Does anyone have an idea of how to do what I want to do?
Thanks so much,
Draug