[mapserver-users] Screen Resolution Woes...
Stephen Woodbridge
woodbri at mediaone.net
Fri Nov 16 10:00:17 PST 2001
The only way(s) I know that this can be done are not perfect. You can
use javascript to get the current browser size and populate hidden form
variables and then design your UI so that it basically does a submit on
any changes to the user makes. This way you get the current browser size
on the PHP side and can make appropriate changes in the page layout.
I also think you can set an window event handler so on page resize you
could then have it do a form submit with the new browser size and have
PHP send back an updated page layout.
my $.02,
-Steve
"Jason R. Patton" wrote:
>
> greetings,
>
> well, i just design to a smaller screen. but thats not what you want. your ideas
> are pretty cool. what i would suggest is that you design for the width of screen
> resolutions this is the main limiting factor, in my opinion.
>
> jay
>
> "Hankley, Chip" wrote:
>
> > I'm really in my first year of creating dynamic web sites... so this is
> > pretty basic.
> >
> > I keep running into issues with screen resolution on target machines.
> >
> > I go through the whole process of making a really great ;) MapServer
> > application, designing it on my box (@ 1280 x 1024), then realize that half
> > my audience is running 640 x 480. I'm mostly designing my apps for in-house
> > clients now... but am on the cusp of putting things on the web - I can only
> > imagine this problem will be compounded then.
> >
> > What I've been experimenting with is using JavaScript to detect the
> > available screen real-estate, then building the interface based on those
> > numbers (I'm using PHP with MapScript). This works OK, but seems quite
> > cumbersome. What is really frustrating to me is that the width / height
> > ratio doesn't seem to remain the same as screen resolution setting change -
> > so simply shrinking / expanding the interface in a linear fashion doesn't
> > work very well. I like the idea of having the application be automatically
> > sized appropriately based on what's available (i.e. NOT having a "click here
> > to increase / decrease the size).
> >
> > How do other people deal with this?
More information about the MapServer-users
mailing list