By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,325 Members | 1,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,325 IT Pros & Developers. It's quick & easy.

Resize a browser window to content

P: n/a
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
Jul 23 '05 #1
Share this Question
Share on Google+
4 Replies

P: n/a
In article <d3**************************@posting.google.com >,
ib*********@yahoo.com enlightened us with...
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????


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?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2

P: n/a
kaeli <ti******@NOSPAM.comcast.net> writes:
Opera, which also uses tabbed browsing, might have a similar option.


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 - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #3

P: n/a
DU
David Logan wrote:
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

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
Jul 23 '05 #4

P: n/a
DU
kaeli wrote:
In article <d3**************************@posting.google.com >,
ib*********@yahoo.com enlightened us with...
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????

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.


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
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.

Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.