When a link in the parent window is clicked, it opens a child window. Now, when the save button is clicked in the child window, I need to trigger a Struts action, close the child window, and reload the parent window.
function closeChildWindow(){
document.forms[0].action="/rms/action/linkSourceList";
document.forms[0].submit();
var originalSource = document.getElementById("originalSource").value;
opener.location.href = '../action/editSource?source_id='+originalSource;
}
I attempted to use the above code in the child window. While this code successfully reloads the parent window, it does not execute the desired action from the child window. Any suggestions on how to resolve this issue would be greatly appreciated. Thank you in advance! :)