Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 1st, 2005, 10:53 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default Resolution Independent Site.

Hi,
Anyone knows how to develope resolution independent site in asp?
I think .net has solved this out??
Any idea?

Thanks in Advance.

Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
 
Old September 6th, 2005, 02:52 PM
Registered User
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to maulik Send a message via Yahoo to maulik
Default

hi,

i think designing resolution indepedent site is very simple, you just need to put [u]your main content inside the main table</u> by setting its heightxwidth in (%). This will solve your prob.

you know table properties, u can set the table property in design time to scale it to the browser window by specifying its height and width in (%). say for ex. 80%. this will dramatically make your site resolution independnt.

thanks
maulik.soni
[email protected]

 
Old September 15th, 2005, 10:02 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

Thanks Maulik,

Do you mean that i have to put all the contents in table? What exactly i have to change? (as of now i m using pixel settings, so i just have to change them to %?)

What about images? as i have very specific images created on high resolution machines.

Thanks in advance.

Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
 
Old September 20th, 2005, 12:59 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Two things - you can either design a site to be best viewed at the lowest common denominator (these days 800x600 still persists), or you can treat the web as it was intended.

If you want to have absolute control over how the user views your work - use print, and stay away from the internet. If you want the site to look exactly the same on every computer, you'll go crazy.
Imagine this:
[rant]
A user looks at your site on a Window XP machine with the google toolbar, yahoo toolbar, ebay toolbar, and a few other toolbars installed, the MS Office shortcut bar is there, and a few other things which take up space, like the Start Menu, title bar, menu bar, address bar etc
Suddenly, you're reduced from having a 1280x1024 resolution to about 800x600 anyway.
Then along comes someone on a Mac using Safari with a totally different setup.
After that someone running Win98 with Netscape 4 joins the party, as does someone running Firefox on a Linux box.
Someone who's mindful of bandwidth rolls up, and has all images and stylesheets turned off, and then they're in a bit of a pickle.
Never mind the poor kid who's forced to use Lynx because he's only got DOS.
[/rant]
You have to allow for users to look at your stuff the way THEY want to, with just a little bit of guidance.
maulik started you off on the right idea - Use relative sizes for as much as you can, for example
Code:
<style><!--
table {width: 100%;}
h1 {font-size: 110%:}
-->
</style>
This way you give your users more freedom


I am a loud man with a very large hat. This means I am in charge
 
Old September 20th, 2005, 01:07 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

A rant it sure was. Use pecentages for best results

Wind is your friend
Matt
 
Old September 22nd, 2005, 09:41 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

Thanks for your reply.
But i think you all have forgotten one point.
What if i have images created on high resolution? how do i align them to fit to lower resolution.

Please advice.


Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
 
Old September 22nd, 2005, 06:49 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

detect what a clients res is and use conditional statements to show one or the other. you could spend weeks on this, most dont bother.

IMO design your site for 800x600 - I design all my sites 790px width (allow for scroll bar) or If I want it to stretch use percentages. I think you are getting to hung up on this, you can not please everybody. Just specify what res and browser types your site is optimized for.

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Independent Data Access Layer Sumith Asanka .NET Framework 2.0 2 September 28th, 2007 02:20 AM
Make IDE independent code getusama Java Basics 0 December 2nd, 2006 02:20 PM
2 independent Column Groups in report matrix? Andrei Reporting Services 1 February 21st, 2006 12:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.