SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Limit user's ability to resize

    Is there a way in javascript to limit the user's ability to resize the screen less than 800x600? I've tried conditionally returning false on the onResize handler of the body tag, but it doesn't seem to work. Ideally I would like to have it so if the user attempts to make the screen smaller than 800x600, the resize mouse pointer would just stop moving.

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First of all, as you can see here, onResize cannot be cancelled, therefore, returning false will do nothing.

    Secondly, I assume you mean resizing the browser window down below an 800x600 equivalent, and not the actual screen resolution of the operating system. Exercising this type of control and restrictions are generally a no-no, and would prefer to hear your reasons for wanting this before telling you what can be done. Please understand that I censor my comments now for your best interests, and not mine.
    Last edited by beetle; Sep 8, 2003 at 16:38.
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by beetle
    Exercising this type of control and restrictions are generally a no-no, and would prefer to hear your reasons for wanting this before telling you what can be done. Please understand that I censor my comments now for your best interests, and not mine.
    Yes I can, but my scruples keep me from doing so until I know why you feel the need to take control of the user's window.
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  4. #4
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, I mean browser window.

  5. #5
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, so why do you want to do this?
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  6. #6
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you answer the question or not?

  7. #7
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am not prepared to share the reasons and/or code behind my u/i design. Suffice it to say that the site will work at 800x600 and above, but will not work at resolutions below that. Instead of having the user attempt to resize lower than that and getting a broken screen, I have decided to find a way to prevent the user from resizing which is beneath an acceptable viewing size for my application.

    Now do you have any advice, or do you just want to jerk my chain some more!

  8. #8
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I assure you, I am not jerking your chain. I didn't even tug [img]images/smilies/wink.gif[/img]

    I respect that you chose not to tell me your code - and honestly, I don't need to know it. What I did need to know is why you felt it necessary to resize the window in this manner, which I now understand.

    At this time, I hope you can respectfully acknowledge that I don't wish to share this information with you. I'm sure you can find it somewhere, it's just not going to come from me. I cannot recommend something which I, as a web-designer, wholly oppose. Their are other, loftier, solutions to your problem, which include making a website that works for most any resolution, and avoid the extreme usability issue of taking control of the user's window. I feel sorry for the soul who uses 640x480 resolution and visits your site only to have their browser window expand larger than their monitor.

    Please take my comments earnestly, and hold off the childish remarks this time. They do neither of us any good or credit.
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  9. #9
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. You did a great job of showing off your ignorance and wasting my time.

  10. #10
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    This thread's going nowhere. I'm closing it.


Bookmarks

Posting Permissions

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