Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

auto detect and adjust for resolution size

Status
Not open for further replies.

Shift838

IS-IT--Management
Jan 27, 2003
987
US
Is there a way to have each page autodetect and adjust for a users screen resolution when each page is hit?
 
You can only use javascript to tell the users screen resolution.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Hi I am not sure if this was what you are asking but I use the following to load my application. The code is in the default page which than opens the main page. Anyway, maybe it will spark another idea for you.

---------------------------------------------
<script language="javascript">

function load()
{
// 768+ Allows for TabletPC and 800x600 PC Clients
if (window.screen.width < 768)
{
alert("This application requires a screen resolution of at least 800x600. Please increase the resolution of your display.")
}
else
{
// Load main page
window.open("main.aspx","main", "height=" + (window.screen.availHeight - 60) + ", width=" + (window.screen.availWidth - 14) + ", top=0, left=0, menubar=0, location=0, resizable=1, status=1, scrollbars=1");
}

// Do not close the window if it is the Application
if (window.name != "default")
{
// Destroy this Window
var oMe = window.self;
oMe.opener = window.self;
oMe.close();
}
}




</script>
--------------------------------------

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top