1) Script Title: DHTML Window widget (v1.1)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ndow/index.htm
3) Describe problem:
I can open a window from a given page and populate it, but I can't seem to call the close() or hide() property from the opened window. I can call it from the "original" window, but nothing I do will allow me to close the window *from* the opened window.
For example, say I've opened a window named "wizbox".
I've tried:
"wizbox.close() ", "window.opener.wizbox.close()", and ""window.opener.wizbox.hide()" from the popup window to no effect.
What I'm doing is loading an entry form into the popup window...when the user submits the form I'd like to have the form get submitted and the widow be hidden or closed (either is fine).
Here's how I'm opening the window:
I then open this window with a button:HTML Code:<script type="text/javascript"> function openmypage(){ wizwin=dhtmlwindow.open("wizbox", "iframe", "/trkwizard.htm", "Form Wizard", "width=590px,height=350px,resize=1,scrolling=1,center=1"); } </script>
It opens fine, and I can close the popup window from the original 'base' window by doing either "onClick='wizwin.hide();' OR onClick='wizbox.hide();' (It seems like only one should work, but heck if I know...) but I cannot seem to close it from the popup window itself.HTML Code:<input type="button" value="Form Wizard" onClick="openmypage(); return false">
I really, really, really want to use this script. What am I missing, or doing wrong?
![]()



Reply With Quote


Bookmarks