PDA

View Full Version : Opening/Closing Sized Window Problem


jcalabro
04-25-2006, 08:59 PM
hey all,
what i need to do is open a navigation window, with no toolbar.. etc. The navigation itself opens popups and closes them. In order to open the nav with no toolbar and such i had to create another Page to Open the Navbar.
But Now... The navbar closes itself instead of open and closing windows!!
heres what i got.

heres the code in the nav bar

MYBTN.onRelease = function() {
getURL("javascript:self.close();");
getURL("javascript:Launch('http://www.THIS.com', 800, 800)");
};


and heres what i got html/javascript side

<script language="JavaScript">
function Launch(page, width, height) {
OpenWin = this.open(page, "myPage", "toolbar=no, menubar=no ,location=no, scrollbars=yes, resizable=yes, width=" + width + ", height=" + height + ", top=" + (screen.height/2 - height/2) + ", left=" + (screen.width/2 - width/2) + "\"");
}
</script>


I used the same code to open my Navigation bar, but it was opened VIA the javascript it closes itself :(
anyone have a solution?!
any help would be appreciated!!

jcalabro
04-25-2006, 09:06 PM
ok, it's been a dumb day today.. sorry for the waste of post!
i forgot about the window name being declared ...
so now..
getURL("javascript:WINDOWNAMEDUH.close();");
thanks for looking ;)

jcalabro
04-26-2006, 06:03 PM
Ok, some windows seam to be closing, although who knows, each link could just be loading into the present window; but there are 2 or 3 pop ups that stay open even though I am "closing" them, at least thats what i told it to do.
why are a couple windows staying open and others loading into each other?


btn.onRelease = function() {
getURL("javascript:myWindow.close();");
getURL("javascript:Launch('http://www.website.com', 1025, 730)");
};


any thoughts?