- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
CSS/html has you covered. http://www.w3.org/TR/css3-mediaqueries/ Server different sheets, or sections of a style sheet based on media type / screen size. No need to sniff for the user-agent.
Admin
Yet another win for those who have replaced thier user agent string with "Commodore 64"
Admin
Please don't ever implement web sites.
I often use my Android tablet to browse the web. Because of geniuses like you I get content designed pixel perfectly for mobile phones on my device that is 1280 pixels wide. Normal websites would be perfectly usable without any scrolling but I'm served some dumbed down crap that looks awful on that screen.
Thanks, web developers.
Admin
It seems to be a very difficult concept to grasp for graphic designers and web developers that the_web_is_not_a_sheet_of_paper. Being a programmer who frequently has to build the web sites that such a graphic genius has designed, I keep having to tell her that she shouldn't bother to design a site for letter-sized paper, nor for 1280x1024 pixels, nor for any fixed amount of pixels, for that matter. Then she looks at me with a blank stare. But the monitor on her desk has 1280x1024 pixels. And the world revolves around her.
Admin
I didn't replace it, in came that way and in PETSCII furthermore.
Admin
Admin
Admin
stop dumbing down the internet, said the iOS user... Did you know you could majorly improve your browsing experience by removing safari and installing a real browser ?
Admin
Now now, don't go asking all those fail webdevs to do a fully adaptable website design, they don't have any button for that in their dreamweavers / wordpress / joomla noobtoys.
Besides, monitor res matters not when a luser installs every available toolbar...
Admin
And go into more depth on how the broad specifics will be actioned going forward.
Admin
Needs more XML
Admin
Great. Did that right away.
Admin
Great. Did that right away.
Admin
You are all wrong, you use 960.gs and adapt.js. Works like a charm.
Admin
That's what LARTs are for.
Admin
I'm pretty sure I heard this exact same line from marketing.
Admin
Admin
Oh please can't we go back to the good old days when everyone used Windows 95 on an 800x600 screen and the only way to communicate with someone else was to email them a Word document?
Admin
In the early days of the web, the server sent what was basically a stream of text, with some markup and maybe a few images, and the browser laid it out to fit in the available space. One of the beauties of the system was that the person who created teh content didn't know or care what browser the user had, what their screen resolution was, what size the browser window was, etc. The browser just scaled and flowed text and made it fit.
Then some genius came along and decided that we needed to have a "richer experience", by which they meant that the server should specify all the formatting details.
The advantage and wonder of this scheme is that I now routinely visit web sites that have all the content in a narrow band in the middle, with big empty space on either side. Or worse, a web page assumes a screen wider than my browser window, so text falls off the edge and I have to constantly scroll left and right. As a developer trying to accomodate users who want these fixed layouts, getting the content right is now about 30% of the job. The other 70% is tinkering with layout to get everything position on the page just exactly the way they want, with all the fancy borders and icons and dancing bear graphics.
But all this inconvenience does not come without offsetting advantages. Now we can get exactly the right number of words on each line. Users are no doubt incredibly impressed by the beauty of the border we put around a block of text and how those findly rounded corners all meet just right. Why, I bet if we had square corners on the "Submit Order" button instead of rounded corners, they'd just exit our web site in disgust and go buy from someone else.
</rant>Admin
But even though you are faker, you are right about not looking at User Agent string. Important things are browser capabilities and window width, both of which can be tested.
Also to consider: data transfer to mobile is slow and it's a good idea to avoid sending large images if you will only show small ones.
Admin
There are tons of web browsers available for iOS that let you change the user-agent, no need to jailbreak for that (a lot of features that require jailbreaking are now standard or have alternatives in the app store).
And most mobile sites had "view full site" links that disabled the mobile version if you really needed it. But there are few of them I really use.
You'd have to take a LOT of convincing me that say, the full version of amazon.com is far better than the mobile version. Less tapping/scrolling around and zooming, for starters, neverminding that the mobile version loads 10 times quicker.
Admin
It would probably be easier (and just as enterprisey) to write your own XML parser which converts the properties file to a giant "case / switch" at compile-time.
Admin
Admin
There's a class missing. Where's UserAgentAntiPattern.java?
Admin
All this talk about resolution-independence and not checking UAs is missing something that's just a little bit important: size or density-independence. A 1-inch button on a big 800x600 CRT isn't a 1-inch button on a 3.5" phone. Mobile layouts tend to have big, 'friendly' interfaces for a reason.
Admin
Indeed density is the biggest issue these days, with more tablets and phones using 1080p+ resolutions everyday. The only thing that would make any sense today is considering device type + physical size of browser window + have a resolution independent layout for each category. even more fail for the web coding world.
Admin
I forgot.. I read this yesterday
http://www.html5rocks.com/en/mobile/cross-device/
there's a piece about how high res touch devices report 50% res and render everything at twice the size, thus yielding the same one inch button on both ipad 2 and 3.
Admin
Dunno if anyone posted this already, but if there is a justitifaction, maybe this is it:
http://webaim.org/blog/user-agent-string-history/
TRWTF?
Admin
FTFY
transverbero. I seem to have transverboed back to not being signed in.
Admin
Admin
If you're Doing It Wrong just by looking at the user-agent string, what's it there for?
Admin
C#:
Java:
Most of the bashing is justified. Stop being so goddamn verbose, Java
Admin
To be fair, most desktop designs do not go well on a mobile browser. Even if the resolution is good enough, the size of the screen is a problem.
Admin
LOL - great!!
Admin
String response = org.apache.commons.io.IOUtils.toString(con.getInputStream()); //or pick any of at least 3 other libs to do it..
Admin
skdrlbsdjk37909453
affinity designer full screen free downloaddragon dictation for pc free downloadwindows 7 desktop themes 2018 free downloadwindows 10 enterprise download 2019 free downloadtoshiba satellite recovery disk download windows 8 freedownload latest directx 12 for windows 10gmetrix practice test for microsoft word 2013 project 3 free downloaddownload do windows 10microsoft sticky notes download for windows xp freedownload google docs for windows 10 https://bit.ly/3AChKHy https://bit.ly/3jN2MYl https://bit.ly/3xBG1LY https://bit.ly/3m0s1ce https://bit.ly/3iDgFcb
download free dropbox for windows 10 gta 2 download for pc windows 7 audacity software for windows 10 free download ballance game pc download facebook gameroom windows 10 download