Resize a browser window to content

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Logan

    #1

    Resize a browser window to content

    Hello,

    I am trying to open a window with a graphic in it and have the window
    be exactly the correct size of the image. Is there anyway to do this
    that will work on any browser on any OS????

    Thanks

    David
  • kaeli

    #2
    Re: Resize a browser window to content

    In article <d3af388a.04071 40914.517f9bc3@ posting.google. com>,
    ibflyfishin@yah oo.com enlightened us with...[color=blue]
    > Hello,
    >
    > I am trying to open a window with a graphic in it and have the window
    > be exactly the correct size of the image. Is there anyway to do this
    > that will work on any browser on any OS????[/color]

    No.
    Very little (comparitvely speaking) works on every browser and any OS.

    Mozilla-based browsers, including NN6+ and Firefox, allow a user to turn
    off the resizing of windows. Thank goodness. Because Mozilla users love
    to use tabbed browsing, your resizing the window would resize all the
    other tabs. Which sucks. A lot. I have resizing turned off for precisely
    this reason.
    Opera, which also uses tabbed browsing, might have a similar option.

    You can try to open a new window and resize, but it's never guaranteed.
    Heck, you can't guarantee your users even have script-enabled browsers
    or that they have scripting enabled on their script-enabled browsers.
    Yes, text-based browsers are still in use, though not overly common.
    Disabled (often visually-impaired) users also have special browsers that
    might not even have the option to resize.

    Note that people who use tabbed browsers often have links set to open in
    a new tab, not a new window. It is also pretty common for them to have
    unrequested popups blocked. [1]

    [1] discussions about this on various sites I visit have led me to these
    conclusions. YMMV.

    --
    --
    ~kaeli~
    Who is General Failure and why is he reading my hard disk?



    Comment

    • Lasse Reichstein Nielsen

      #3
      Re: Resize a browser window to content

      kaeli <tiny_one@NOSPA M.comcast.net> writes:
      [color=blue]
      > Opera, which also uses tabbed browsing, might have a similar option.[/color]

      Actually, Opera doesn't use tabbed browsing, but rather MDI (Multiple
      Document Interface), where each page is a separate window inside the
      main application window. When all page windows are maximized, it
      looks like tabbed browsing (and resizing fails, since the preferred
      size doesn't matter while maximized).

      However, Opera does have a similar option (Preferences> Multimedia >
      Javascript options > Enable resizing of windows).

      If you open a new window with window.open, and specifies sizes, the
      window is opened as non-maximized.

      /L 'who thinks MDI is superior to simple tabs'
      --
      Lasse Reichstein Nielsen - lrn@hotpop.com
      DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
      'Faith without judgement merely degrades the spirit divine.'

      Comment

      • DU

        #4
        Re: Resize a browser window to content

        David Logan wrote:
        [color=blue]
        > Hello,
        >
        > I am trying to open a window with a graphic in it and have the window
        > be exactly the correct size of the image. Is there anyway to do this
        > that will work on any browser on any OS????
        >
        > Thanks
        >
        > David[/color]


        Yes but it would not work on all browsers, all possible versions and on
        all OSes. It would work on Mozilla-based browsers (rv > 1.3), NS 7.x,
        Opera 7.x, MSIE 6.
        Depending on the fact that the sub-window with a graphic in it is in
        fact an .html file or it is a graphic file only, the answer would be
        differential. Can you clarify this? Also, can you provide an url to show
        what you have done so far?

        DU

        Comment

        • DU

          #5
          Re: Resize a browser window to content

          kaeli wrote:
          [color=blue]
          > In article <d3af388a.04071 40914.517f9bc3@ posting.google. com>,
          > ibflyfishin@yah oo.com enlightened us with...
          >[color=green]
          >>Hello,
          >>
          >>I am trying to open a window with a graphic in it and have the window
          >>be exactly the correct size of the image. Is there anyway to do this
          >>that will work on any browser on any OS????[/color]
          >
          >
          > No.
          > Very little (comparitvely speaking) works on every browser and any OS.
          >
          > Mozilla-based browsers, including NN6+ and Firefox, allow a user to turn
          > off the resizing of windows. Thank goodness. Because Mozilla users love
          > to use tabbed browsing, your resizing the window would resize all the
          > other tabs. Which sucks. A lot. I have resizing turned off for precisely
          > this reason.[/color]

          I think the OP miswrote the subject line with "Resize" when his post
          originally meant to size, to fit the window according to an image (html
          or image?) size.

          I agree with what you say overall.

          DU
          [color=blue]
          > Opera, which also uses tabbed browsing, might have a similar option.
          >
          > You can try to open a new window and resize, but it's never guaranteed.
          > Heck, you can't guarantee your users even have script-enabled browsers
          > or that they have scripting enabled on their script-enabled browsers.
          > Yes, text-based browsers are still in use, though not overly common.
          > Disabled (often visually-impaired) users also have special browsers that
          > might not even have the option to resize.
          >
          > Note that people who use tabbed browsers often have links set to open in
          > a new tab, not a new window. It is also pretty common for them to have
          > unrequested popups blocked. [1]
          >
          > [1] discussions about this on various sites I visit have led me to these
          > conclusions. YMMV.
          >[/color]

          Comment

          Working...