View Full Version : Write status on parent window when close child window
ksridhar69
08-29-2002, 10:14 PM
I want write the status of the child window on parent window. when i close the child window .With out refresh parent window. Is it possible?
joh6nn
08-29-2002, 10:15 PM
window.opener.status = self.status;
ksridhar69
08-29-2002, 10:23 PM
No it is not working. When i close the child window i know the table row number on parent window. So in that row i want to write "Success", or "Failed"
ShriekForth
08-29-2002, 10:36 PM
Pass the status from the child window to a function on the parent. I'm not sure what you are trying to do, but if you have a unique identifier that is known by the child, you can have it write to the parent, or call a function on the parent that will update the itself.
child.html
<body onUnload="opener.setStatus('true','21')">
parent.html
function setStatus(stat, row){
//update the page from here, in a form field, or in a div
}
opener is the key to referencing the parent of the child window.
ShriekForth
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.