I have a frames, and a form with a submit button. When the user clicks the submit button, I would like the form details to be submitted and one of the frames (not the one with the form) to be refreshed.
Any way to do this?
You just have to make a little function like this :
<script language="javascript">
function submitAndRefresh() {
//refresh the page in frame
window.top.document.frames['name_of_your_frame'].document.location = "myPage.htm";
//submit the form
document.forms[0].submit();
};
</script>
I can refresh and then submit fine, but I would like the page to refresh after the submit. When the submit button is clicked, the user is not redirected. They remain on the current page, but the form information is posted to another page, which performs some operations. I would like one of the frames on the current page to be refreshed after the submit.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.