Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: browser window dimensions


Message #1 by "Luis Maynar" <luis.maynar@n...> on Tue, 10 Oct 2000 09:00:49 +0100
Chris ---

While I certainly agree with the principle of your letter, I must point out
some things.

Employers do not always appreciate the precepts of a given technology.
Business folks generally want what they want.  It may well be that Luis is
simply trying to give a customer what they want.  They will certainly find
out how expensive it can be to try to customize their application to fit
every possible browser window dimension.  In the mean time, I don't see
where it would hurt to answer the question rather than rant about someone
else's view of what a browser should be or the intended purpose of HTML. We
are already WAY beyond anything the inventors of the web could have imagined
and stretching the boundaries is what has brought us to this place.

That being said, the appropriate place to look for dimensions would be the
window object and its various height and width properties (innerHeight,
innerWidth, outerHeight, outerWidth, height and width).  mainpulating those
properties should do the trick.

Michael

----- Original Message -----
From: <Chris.Neale@s...>
To: "javascript" <javascript@p...>
Sent: Tuesday, October 10, 2000 6:48 AM
Subject: [javascript] RE: browser window dimensions


> I already answered this on the ASP list. However.. I'll add something to
> what I previously said..
>
> Making a specific version for each resolution is moronic. It defeats all
> that HTML works to achieve. The entire reason for the language in the
first
> place was to develop a simple and effective, platform independent method
of
> describing text and image layout specifically for an internet environment.
> It was understood from the beginning that there would be a wide range of
> browsers and computers accessing information, and so it was that HTML was
> born. Why would you want to ruin all that by disregarding the independence
> HTML offers. What happens to the user who has a different resolution, one
> that you haven't considered? Do you just cast them aside? What about
people
> who don't surf with their browser maximised? How about people that use
text
> only browsers such as Lynx, or people that need to use text-to-speech
> browsing tools? Going to ignore them because your site isn't going to be
> 'perfect' enough?
>
> Maybe I'm being harsh, but to me this is like buying a whole new car just
> because you have a flat tire. If you were good enough at HTML to be able
to
> design a good site you'd be able to design something that worked well in
all
> resolutions.
>
> Chris
>
> PS. Somehow I doubt this'll get to the list. It just pisses me off that
> people can't do proper web design anymore. And its annoying that this guy
> ignored my posting on the ASP list.
>
> (Well, not everybody reads every list, and this is to help people after
all.  This was originally posted on the beginning_asp list, I transferred it
to the javascript list, where there is a solution.  I think I speak for
everyone here at P2P though in agreeing that web pages should be written to
be as widely useful as possible.  This is becoming more important as more
mobile devices become attached to the web.  Moderator)
>
> Chaos! Panic! Disaster! (My work here is done)
> Chris Neale. Web/Wap Developer
> Chris.neale@s... <mailto:Chris.neale@s...>
> www.sparkresponse.co.uk
>
> -----Original Message-----
> From: Luis Maynar [SMTP:luis.maynar@n...]
> Sent: Tuesday, October 10, 2000 7:38 PM
> To: javascript
> Subject: [javascript] browser window dimensions
>
> Hi all,
>
> Can anybody tell me how to find out the dimensions of the browser
> window
> the user of my web application is using?  If I know this information
> I can
> ultimately customise my site for different windows size.
>
> Cheers.
>
>
>


  Return to Index