Post #273,911
11/26/06 2:08:30 AM
|
Re: Whatever
But how do you detect the 2 pixel vertical positioning error?
\r\n\r\n Um... by testing? \r\n\r\n Seriously, there are dozens of browsers out there, but there are maybe four rendering engines that matter, all of which can be installed on a single computer if you've got a crappy testing budget. And 2-pixel positioning errors are much more a CSS problem than a JavaScript problem, so I don't see how JavaScript UA sniffing helps there. Unless you're using JS to compensate for CSS bugs, which is bound to bite you in the long run. \r\n\r\n But whatever. I doubt you could even get in where I worked.
\r\n\r\n You assume that I'd want to ;) \r\n\r\n Regardless, I've talked to a few people who've worked for "the world's largest retailer" (hey wait, I thought that was Wal-Mart?) and generally the prognosis is Not Good.
--\r\nYou cooin' with my bird?
|
Post #273,933
11/26/06 1:29:07 PM
11/26/06 1:41:51 PM
|
Re: Whatever
"by testing?"
In the javascript? I don't see how I can tell from there that the thing has been drawn in the wrong place. But maybe you don't do applications and just do pages.
"And 2-pixel positioning errors are much more a CSS problem than a JavaScript problem"
They're still problems. I'm supposed to pretend the user doesn't see? Not when you are doing dynamic overlays and they have to sit in the right spot. So there is an object that is the "bug compensator" for positioning errors that is specific to user agent and all bug prone maniupulations are delegated to that. Ideally, that class would become empty call throughs - but in the real world there are hacks to make stuff work.
And how is your WebTV solution? You do handle that, right? WebTV gives you 544 x 372 pixels. The only way to tell is to look for webtv in the user agent - which is otherwise IE6. But, of course, if you're sure you can tell by sniffing around in the browser and can rejig your UI based on that, well cool for you. We just give them special pages.
"the world's largest retailer"
you left out "internet". World's largest internet retailer. I actually think the business with the longest legs is the S3/EC2 stuff. It is cool.
[link|http://www.blackbagops.net|Black Bag Operations Log]
[link|http://www.objectiveclips.com|Artificial Intelligence]
[link|http://www.badpage.info/seaside/html|Scrutinizer]
|
Post #273,941
11/26/06 4:12:28 PM
|
Re: Whatever
In the javascript? I don't see how I can tell from there that the thing has been drawn in the wrong place. But maybe you don't do applications and just do pages.
\r\n\r\n You go to your test machine, you fire up Browser X, and you look at a few examples of the effect in it. How does an "applications" versus "pages" distinction make a difference to that? Your application is, in all likelihood, going to be using some sort of templating, so the various types of pages will all look similar except for changes in content. \r\n\r\n That's how I test JavaScript stuff at work, and it's not all that hard really.
--\r\nYou cooin' with my bird?
|
Post #273,945
11/26/06 4:24:16 PM
|
Uh yeah - so how do I compensate for it in the page?
Because, we check the user agent string to correct for it.
[link|http://www.blackbagops.net|Black Bag Operations Log]
[link|http://www.objectiveclips.com|Artificial Intelligence]
[link|http://www.badpage.info/seaside/html|Scrutinizer]
|
Post #273,947
11/26/06 4:28:12 PM
|
Re: Uh yeah - so how do I compensate for it in the page?
CSS people have been compensating for bugs for years without doing UA sniffing ;) \r\n\r\n But this is largely a red herring; my point is simply that UA sniffing to determine what features you'll let the user see is, and ought to remain, dead. If it's the most efficient way to solve a CSS bug, then that's another story, but the question here is things like whether you send your CSS to the browser at all, not whether you send the fix for a 2-pixel rendering bug.
--\r\nYou cooin' with my bird?
|
Post #273,953
11/26/06 4:55:33 PM
|
I mostly agree
but then there's that whole webtv thing again.
[link|http://www.blackbagops.net|Black Bag Operations Log]
[link|http://www.objectiveclips.com|Artificial Intelligence]
[link|http://www.badpage.info/seaside/html|Scrutinizer]
|
Post #273,959
11/26/06 5:08:51 PM
|
Re: I mostly agree
WebTV needs to go on the garbage heap ;) \r\n\r\n There's a new incarnation of that idea being pushed at work, we had to basically set up completely segregated versions of our sites on subdomains with their own templating and whatnot to deal with it and send the users over there, because there's no way to detect it (thanks to the way it works, to a server it's indistinguishable from normal IE 6).
--\r\nYou cooin' with my bird?
|
Post #273,992
11/26/06 10:30:10 PM
|
Couldn't you use your WAP page?
I'm assuming anyone who cares about early adopters is writing pages for people surfing on their cell phones. I would guess the pages you server up to them would also work (sorta) on WebTV, wouldn't they?
===
Kip Hawley is still an idiot.
===
Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats]. [link|http://DocHope.com|http://DocHope.com]
|
Post #274,027
11/27/06 12:26:58 AM
11/27/06 12:32:12 AM
|
Re: Couldn't you use your WAP page?
Not really; the TV stuff, because of the interface it uses, had a different set of requirements for visual presentation. Which, fortunately, is really easy to do; one of my co-workers [link|http://www.postneo.com/2006/07/26/acknowledging-the-mobile-web-with-django|wrote up how we handle this sort of thing] for our mobile sites. \r\n\r\n Edit: I should probably also take this moment to pimp Matt's talk from PyCon on [link|http://postneo.com/talks/pycon2006/|mobile development with Python].
--\r\nYou cooin' with my bird?
|
Post #274,033
11/27/06 1:34:21 AM
|
Re: I mostly agree
WebTV needs to go on the garbage heap ;) OK, there we completely agree. However, I believe there is a 'webtv' in the user agent string if you look for it. Failing that, you can do a screen size check in js and redirect them.
[link|http://www.blackbagops.net|Black Bag Operations Log]
[link|http://www.objectiveclips.com|Artificial Intelligence]
[link|http://www.badpage.info/seaside/html|Scrutinizer]
|
Post #274,035
11/27/06 5:07:33 AM
|
Re: I mostly agree
Unfortunately, it's not actually WebTV, it's a WebTV-alike. I'll go poke at logs sometime this week, but I seem to recall that one of its major annoyances was not advertising itself in its UA string, and instead trying to be as much like IE6 as possible.
--\r\nYou cooin' with my bird?
|