Click to See Complete Forum and Search --> : resizing window quastion


kariba
03-01-2003, 06:55 PM
Hello all,

I have a page, where is a button, that opens another page without toolbars and such. I wonder, if I can do all this with the original page.

I.E when they go to it, the will log in, and after that, resize this page, make it without toolbars and such, and avoid opening a new window and closing parent one.

thanks for any advice.

Mike

Jona
03-01-2003, 07:49 PM
Resizing the window is, indeed possible, however taking off the toolbars and menu bars I do not think is possible. You can take off the scrollbar, though, with style="overflow:none".

kariba
03-01-2003, 08:07 PM
Hi,

I solved it...

It's a little weird, but it works!

popup = window.open(url,winName,\"toolbar=no,location=middle ,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=yes, width=800, height=575\");";

parentwin = window.self;";
parentwin.opener = window.self;";
parentwin.close();";

Thanks,

Mike

pyro
03-01-2003, 08:18 PM
It would also probably annoy the heck out of your users. Please only use if this is 1. an intranet or 2. booting from a CD...

kariba
03-01-2003, 08:22 PM
intranet ;)

thanks,

Mike

pyro
03-01-2003, 08:24 PM
Whew... :D

kariba
03-01-2003, 08:57 PM
Hi again,

I ran into a problem...

This ask user for closin the parent window...
if (self.scrollbars.visible!=false) {
parentwin = window.self;
parentwin.opener = window.self;
parentwin.close();
}

And this doesn't
if (self.scrollbars.visible!=false) {
parentwin = window.self;
parentwin.opener = window.self;
parentwin.close();
}

How can I avoid promt in the first case?

thanks a lot.

Mike

pyro
03-01-2003, 10:19 PM
Both clips of code you posted look the same to me...For a simpler/cleaner way to close the parent window with no prompts please view this page... http://www.infinitypages.com/research/selfclose.htm

kariba
03-01-2003, 10:25 PM
I am sorry,

this is right:

This ask user for closin the parent window...
if (self.scrollbars.visible!=false) {
parentwin = window.self;
parentwin.opener = window.self;
parentwin.close();
}

And this doesn't

parentwin = window.self;
parentwin.opener = window.self;
parentwin.close();

How can I avoid promt in the first case?

thanks a lot.

Mike

pyro
03-01-2003, 10:33 PM
Please code it like I did in my research project here: http://www.infinitypages.com/research/selfclose.htm. Much cleaner...