Click to See Complete Forum and Search --> : no resize embedded into popup


chrisw184
11-24-2003, 09:20 AM
I am currently using a 'Live Help' feature on a site.

From the Admin program I call up a chat window popup on the client side. However, this popup window is resizable by the client and I do not want this to happen. As it is the Admin software that calls up the window (and its attributes (no scrolling, no status bar etc)), I am wanting to know if there is any fix that I can code into the actual popup page itself that will override the resizable attribute so that the user can no longer resize the window.

Any help would be much appreciated.

Thanks and regards

Chris W

gil davis
11-24-2003, 10:20 AM
This ought to irritate the living daylights out of someone:
var wd = 200;
var ht = 200;
window.onresize = redo;
function redo() {
window.resizeTo(wd, ht);
}

chrisw184
11-25-2003, 09:12 AM
thanks gil

Unfortunately that didn't work for me.

I want the it so that the window can't be resized at all...but the code that stops this has to go inside the popup page itself as it is a software application that initiates the popup window.

I take it the code you supplied allowed you to 'stretch' the window and then the code would make it 'shrink' back to the size set in the code?

TheBearMay
11-25-2003, 11:09 AM
Maybe I'm missing something, but why can't the pop up window contain the resize code? (Which btw probably would annoy many people.)

chrisw184
11-25-2003, 11:19 AM
yea...thats why i dont want to use it