Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Screen resolution
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Screen resolution

 Post Reply Post Reply Page  12>
Author
Mc Brain View Drop Down
Senior Member
Senior Member


Joined: 11 June 2002
Location: Argentina
Status: Offline
Points: 223
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mc Brain Quote  Post ReplyReply Direct Link To This Post Topic: Screen resolution
    Posted: 16 June 2003 at 8:55am

I'm creating a page that would show a lot of thumbnails on a table. The problem is that I'm creating a 5x5 table's photo and it's too wide if the resolution is 800x600. I mean, the 5-thumbnails row is too wide and the horizontal scrollbar appears.

The ASP's code has these values (number of thb by column and row) as variables, so it would be easy to fix this. The question is... how do I get the screen resolution to decide how many thumbnails should be shown in each row?



Edited by Mc Brain
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2003 at 10:21am

You can use Browserhawk (www.cyscape.com) to detect the screen resolution serverside or theres some javascripts to do it client side (www.dynamicdrive.com).

Hope that helps, Mart

Back to Top
Mc Brain View Drop Down
Senior Member
Senior Member


Joined: 11 June 2002
Location: Argentina
Status: Offline
Points: 223
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mc Brain Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2003 at 8:46pm

3rd Parties objects are not a solution... because I'm not asking my ISP to install it (I have enough problem with regular hosting to have more things to claim.)

On the other hand... I would need the screen resolution in VBScript... or at least be able to return the value to VBScript so that I can use the code I've already have.

Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 17 June 2003 at 1:00am
Use Javascript
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 17 June 2003 at 1:46am
The problem with detecting resolution is that it assumes the user maximizes the browser. What you really want is the window size and for that you will need to use Javascript. My suggestion would be to use Javascript to write the window size to a cookie (before you need to display the thumb nails) and then retrieve the value from the cookie.
Back to Top
Mc Brain View Drop Down
Senior Member
Senior Member


Joined: 11 June 2002
Location: Argentina
Status: Offline
Points: 223
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mc Brain Quote  Post ReplyReply Direct Link To This Post Posted: 17 June 2003 at 4:27am
Do you have any Java sample to show me?
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 17 June 2003 at 9:17am
Java or javascript?
Back to Top
Mc Brain View Drop Down
Senior Member
Senior Member


Joined: 11 June 2002
Location: Argentina
Status: Offline
Points: 223
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mc Brain Quote  Post ReplyReply Direct Link To This Post Posted: 17 June 2003 at 10:04am
I don't know. Anyone that works.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.