guys i hope you can help. im stuck with this problem.
i have a page / form "edit.jsp" where user may change data upon clicking the submit button.
the page,"validate.jsp" is called.
here, i have placed an <body onload="validate()";>
function validate()
{
msgWindow=window.open('','displayWindow','top=150,left=150,width=325,height=300');
document.formName.method = "POST";
document.formName.target = "displayWindow";
document.formName.action = "edit-confirm.jsp";
document.formName.submit();
document.formName.method = "POST";
document.formName.action = "list.jsp";
document.formName.target = "_self";
document.formName.submit();
return;
}
with this code, the current window is directed to "list.jsp" that reflects the changes made, and a pop-up is also displayed, the "edit-confirm.jsp" where use must click button to call another page "welcome.jsp" that should be displayed on the window where the "list.jsp" is currently shown and the popup closes.
what makes this more difficult for me is i have to keep the old parameters from the previous pages.
:-/
i have a page / form "edit.jsp" where user may change data upon clicking the submit button.
the page,"validate.jsp" is called.
here, i have placed an <body onload="validate()";>
function validate()
{
msgWindow=window.open('','displayWindow','top=150,left=150,width=325,height=300');
document.formName.method = "POST";
document.formName.target = "displayWindow";
document.formName.action = "edit-confirm.jsp";
document.formName.submit();
document.formName.method = "POST";
document.formName.action = "list.jsp";
document.formName.target = "_self";
document.formName.submit();
return;
}
with this code, the current window is directed to "list.jsp" that reflects the changes made, and a pop-up is also displayed, the "edit-confirm.jsp" where use must click button to call another page "welcome.jsp" that should be displayed on the window where the "list.jsp" is currently shown and the popup closes.
what makes this more difficult for me is i have to keep the old parameters from the previous pages.
:-/