kewpe20 Posted October 21, 2009 Share Posted October 21, 2009 Hello all, I've been trying to a resolve an issue with a parent page not reloading after a child form is submitted. The initial problem is that I immediately lose the value of window.opener on the call to the child window.. What am I doing wrong? Here is my call to the child window in my php file: <a href="notes.php" class="actiontiny" target="_blank" onclick="modalWin('3','4','add' ); return false;">Add Note</a> Here is the Javascript for modalWin function: The alert statement results in "undefined" when it should result in the name of the parent's php file name....right? function modalWin(type, id, func) { alert(window.opener); if (window.showModalDialog) { window.showModalDialog("notes.php?type="+type+"&id="+id+"&func="+func+"","Notes", "dialogWidth:600px;dialogHeight:510px"); } else { window.open('notes.php?type='+type+'&id='+id+'&func='+func+'','Notes', 'height=510,width=600,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes'); } } Link to comment https://forums.phpfreaks.com/topic/178504-losing-value-of-windowopener/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.