Reply
How to check what is user's width of resulution
Old 10-06-2008, 05:20 PM How to check what is user's width of resulution
Novice Talker

Posts: 8
Trades: 0
I have upload image site but I need to know how to check what is user's width of the screen/resulution
elizool99 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-07-2008, 03:17 AM Re: How to check what is user's width of resulution
Experienced Talker

Posts: 45
Trades: 0
Quote:
Originally Posted by elizool99 View Post
I have upload image site but I need to know how to check what is user's width of the screen/resulution
You could do it using Javascript: http://www.zimmertech.com/tutorials/...r-tutorial.php
arbet is offline
Reply With Quote
View Public Profile Visit arbet's homepage!
 
Old 10-07-2008, 09:35 AM Re: How to check what is user's width of resulution
Novice Talker

Posts: 8
Trades: 0
Only JS ?
elizool99 is offline
Reply With Quote
View Public Profile
 
Old 10-07-2008, 09:41 AM Re: How to check what is user's width of resulution
Experienced Talker

Posts: 45
Trades: 0
Unfortunately yes, as you need a client side scripting engine to detect a user's resolution, and javascript is the only one I am aware of!
arbet is offline
Reply With Quote
View Public Profile Visit arbet's homepage!
 
Old 10-07-2008, 10:34 AM Re: How to check what is user's width of resulution
Novice Talker

Posts: 8
Trades: 0
How can i convert it to php var ?
elizool99 is offline
Reply With Quote
View Public Profile
 
Old 10-07-2008, 10:45 AM Re: How to check what is user's width of resulution
Experienced Talker

Posts: 45
Trades: 0
You will need to pass it to a php script via a hidden form, and the javascript submit function.
But why do you need to pass it to php? If you just need to redirect to a different page, use the javascript redirect function
arbet is offline
Reply With Quote
View Public Profile Visit arbet's homepage!
 
Old 10-07-2008, 11:33 AM Re: How to check what is user's width of resulution
Novice Talker

Posts: 8
Trades: 0
Quote:
Originally Posted by arbet View Post
You will need to pass it to a php script via a hidden form, and the javascript submit function.
But why do you need to pass it to php? If you just need to redirect to a different page, use the javascript redirect function
I have image upload site and i want that the page will resize image so the image suitable to user's screen width
elizool99 is offline
Reply With Quote
View Public Profile
 
Old 10-08-2008, 03:58 AM Re: How to check what is user's width of resulution
mtishetsky's Avatar
King Spam Talker

Posts: 1,166
Name: Mike
Location: Mataro, Spain
Trades: 0
You want to resize the image physically or you simply want it to fit the screen? In second case you may simply add width="100%" in img tag.
__________________
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 10-08-2008, 06:32 AM Re: How to check what is user's width of resulution
Novice Talker

Posts: 8
Trades: 0
Quote:
Originally Posted by mtishetsky View Post
You want to resize the image physically or you simply want it to fit the screen? In second case you may simply add width="100%" in img tag.
If to do 100%
The width and Height wont be relative
elizool99 is offline
Reply With Quote
View Public Profile
 
Old 10-08-2008, 05:19 PM Re: How to check what is user's width of resulution
wayfarer07's Avatar
NYE-KEE

Posts: 3,155
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
If you set the width alone as a CSS property, the height will be set automatically, and will be proportional. No scripting needed.
__________________
Wayfarer | jQuery Tooltip Plugin | Mapbox: the jQuery Map
Freelance Jobs Available
If Google is the Coca-Cola of Web search, Bing is RC Cola
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to How to check what is user's width of resulution
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.16130 seconds with 13 queries