Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    non-resizable window WITHOUT a popup?

    Hi. I'm trying to make a page non resizable WITHOUT opening a popup.

    How would I go about having a link on a page that when clicked, opens a new page AND resizes the window and making it non-resizable and non-scrollable.

    I know you can do this as a popup, but that is just annoying and some peoples popup blockers may block it. Some one suggested in having a script that opens a new window and closes the old one but some people might not like that either.

    On another note, how do I keep it so that if someone links to the page that needs to be resized directly, how would I get it to be resized then? having this page not resized completely ruins the site design.

    Any help would be greatly appreciated.

  • #2
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Well, the usability friend inside of me would tell you that windows - new, old, sizes and content - are part of the user interface, and the user interface is the user's to do with as he wishes, not yours as a web developer.

    Closing windows that are not opened by script is disallowed by all browsers but op, though there's a way around this in iew.

    As you say a popup blocker may prevent that popup you want to do, though you can get around most of them by making the popup trigger on for example a click on a link instead of as an automatic event.

    Well, what this boils down to is: You have no control over the window, not to speak of the window size, so forget about it already. Instead concentrate on the document you want to display inside the window: can you make the document in such a way that the window size is irrelevant, by for example creating a box that limits the content size if the user happens to change window size? This has the additional benefit of solving your external linking problem as well.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #3
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well I understand your point completely, but I am making a portfolio site (for myself and my 3D design)

    This non-resizable window thing is something that I see a LOT with porfolio sites.

    This is the site that really inspired me to have this type of design. the plans that I have for the site really call for it. The only thing I wanted different was so that the main page it self would be non-resizable without having to open a pop-up.

    Thanks.

  • #4
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A portfolio site which locks out most of your visitors is well, a waste of time... Besides, you are spinning wheels and most of these window exploits have been addressed with the release of SP2.... I would suggest that you seriously consider Liorean's suggestions...

    ......Willy

  • #5
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    OK OK you guys win. I've come up with a new design that still works well for what I had planed AND is within a full-size REsizable window.

    Thanks for the tips guys.

  • #6
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You are still spinning wheels if you are using a full-size REsizable window....

    All of these window property exploits have been addressed with the release of SP2 and you can no longer open a window without titlebar, addressbar or scrollbars...

    .....Willy

  • #7
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    LOL what are you talking about? EVERY normal page IS a fullsize resizable window. take a look at the window you are in right now. you can maxamize it to your screen (fullsize), and you can resize it to anything you want.

  • #8
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Not anymore....

    Note: window.open() with fullscreen=yes will now result in a maximized window, not a kiosk mode window.
    Perhaps you should go over to the MSDN Library and read for yourself the security changes which were made with the release of SP2...

    .....Willy

  • #9
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    LOL you still don't get what I'm saying. haha

    I'm talking about a NORMAL window, the window at THIS site, the window at www.google.com, the window at ANY NORMAL web page.

    I'm NOT talking about forcing the window to do ANYTHING

  • #10
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Then why do you keep mentioning Full Size???
    Try pressing F11... That's Full Size....

    .....Willy

  • #11
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    OK I see what you mean. I said full size to let you know that I wasn't going to use any javascript (or any script) to control the the window size.

    Sorry for the misunderstanding.


  •  

    Posting Permissions

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