guineamation
Programmer
Hi,
I have a parent window who opens a child window:
function openPicEdit(imgID)
{
var dest="inc_picEdit.asp?imgID=" + imgID;
window.open(dest, "win_Image", "toolbar=no,status=no,scrollbars=yes,height=400,width=400,resizable=1")
}
on action the child window calls a function in parent window that suppose to close the child and refresh the parent
function RemovePic(cod) {
var str = submit.frm_Text.value;
for (i=1; i<=10; i++) { str = str.replace(cod,'') }
submit.frm_Text.value = str;
win_Image.close();
window.location.reload();
}
the child window will not close and the parent window is not reloading...
any ideas?
thanks in advanced....
I have a parent window who opens a child window:
function openPicEdit(imgID)
{
var dest="inc_picEdit.asp?imgID=" + imgID;
window.open(dest, "win_Image", "toolbar=no,status=no,scrollbars=yes,height=400,width=400,resizable=1")
}
on action the child window calls a function in parent window that suppose to close the child and refresh the parent
function RemovePic(cod) {
var str = submit.frm_Text.value;
for (i=1; i<=10; i++) { str = str.replace(cod,'') }
submit.frm_Text.value = str;
win_Image.close();
window.location.reload();
}
the child window will not close and the parent window is not reloading...
any ideas?
thanks in advanced....