XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old September 4th, 2003, 02:14 PM
luinetti luinetti is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Tennessee
Posts: 13 luinetti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Determine resolution

Given that one cannot use script with XHTML Basic, does anyone know of a non-JS approach to use in determining a user's screen resolution (like a PDA, for ex)?

Bill

Reply With Quote
  #2  
Old September 5th, 2003, 04:41 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
What do you mean by not being able to use script with XHTML?

And no, without an active technology running in the browser (scripting, flash, java applet) you're not going to be able to get the user's resolution. Not without asking, at least.

There are alternatives, though, such as coding liquid layouts using css. Done correctly it doesn't matter what the resolution is.

Reply With Quote
  #3  
Old September 5th, 2003, 04:50 PM
luinetti luinetti is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Tennessee
Posts: 13 luinetti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Determining, more of...

Hey again, Bricker;

There are two issues:

With XHTML Basic, the language capability is severely reduced and one of the things that was removed was the ability to use scripts.

Second, scaling-wise, with div or block or img, relative scaling can be used so that it is relatively independent of resolution. With font size (em or px), as resolution decreases, the relative size of the fontsize increases, and it becomes difficult to marry the two for a myriad of resolutions.

Do you agree with that?

I guess part of the solution is that I really shouldn't worry about screwing with images on XHTML Basic anyway...

But, the concept got me to thinking about work arounds because of losing script capability.

Bill

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Determine resolution


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway