|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Determine resolution |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|