www.webdeveloper.com
Results 1 to 5 of 5

Thread: no resize embedded into popup

  1. #1
    Join Date
    Jul 2003
    Posts
    9

    Question no resize embedded into popup

    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

  2. #2
    Join Date
    Nov 2002
    Posts
    4,473
    This ought to irritate the living daylights out of someone:
    Code:
    var wd = 200;
    var ht = 200;
    window.onresize = redo;
    function redo() {
      window.resizeTo(wd, ht);
    }

  3. #3
    Join Date
    Jul 2003
    Posts
    9
    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?

  4. #4
    Join Date
    Nov 2003
    Location
    Worthington, OH, USA
    Posts
    3,634
    Maybe I'm missing something, but why can't the pop up window contain the resize code? (Which btw probably would annoy many people.)

  5. #5
    Join Date
    Jul 2003
    Posts
    9
    yea...thats why i dont want to use it

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles