Old 03-04-2007, 12:19   #1 (permalink)
longisland6
stephen eighmey
 
Join Date: Oct 2006
Location: earth
Posts: 152
browser detection

over the last year or so i've really become an adherent of web standards. i'm in the process of designing my first site that is (hopefully) 100% valid for xhtml transitional, css and section 508 complience.

i've been a web designer/developer for about 8 years now and i've produced quite a few websites and applications. these were all functional, and in some cases, beautiful pieces of work that functioned perfectly for the audience they were intended for. unfortunately, most of them were tag soup behind the scenes and did not validate.

the site(s)/applications i've designed, developed and maintain for my primary 9 to 5 job is a collection of pages and apps that include graphic design, html, flash, javascript, server-side scripting (asp) and database development (mysql). and...all these pages are styled with externally linked css based on the browser someone is using (calm down and take a deep breath...). i will hopefully soon be able to re-work the site to make it more standards compliant. in the meantime i am using server-side scripting (asp, http user agent) to determine the browser type/version. i've been reading about how easy it is to spoof this string and throw off these results. i've got 2 questions about this:

1. how many of my site users actually do this, or even know how or what it is? my guess is zero. and...

2. what is the best server-side method of determining the browser type/version of a site user? (no client side detection; i've got to consider someone who, for whatever reason has javascript turned off or some other limitation in place that, in imho, severely limits the experience of the web)

so... thanks in advance for any suggestions.
  Reply With Quote
Old 03-04-2007, 12:25   #2 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
1. Not many, probably.

2. It's a bad idea. I've never had any real need to do it, myself, outside of using conditional comments to target IE (proprietary code, but still standards compliant). All the other browsers work like they're supposed to.
  Reply With Quote
Old 03-04-2007, 12:28   #3 (permalink)
longisland6
stephen eighmey
 
Join Date: Oct 2006
Location: earth
Posts: 152
well yes, ie is the problem. but since it's currently the primary browser in use today, by a wide margin, this becomes an issue.

i know it's a bad idea...
  Reply With Quote
Old 05-04-2007, 11:34   #4 (permalink)
longisland6
stephen eighmey
 
Join Date: Oct 2006
Location: earth
Posts: 152
what suggestions does everyone have for writing flash that is standards complient? i've been reading about sifr(?) but it appears this is for writing text only, is this correct, or can it display any flash file regardless of content?
  Reply With Quote
Old 06-04-2007, 22:11   #5 (permalink)
achtungbaby
Validate *this*
 
Join Date: Mar 2007
Location: Los Angeles CA
Posts: 19
Quote:
Originally Posted by longisland6
what suggestions does everyone have for writing flash that is standards complient? i've been reading about sifr(?) but it appears this is for writing text only, is this correct, or can it display any flash file regardless of content?
If you're talking about general flash embedding, Geoff Stearns' swfobject is the way to go. I've used it on nearly every flash project for the last three years. Aside from it just being plain better than most of the other techniques and methods out there, Stearns puts a lot of time supporting it and improving it. Basically swfobject will search through your page for an element you specify, and when it finds it, will clear out whatever's inside and replace it with your swf.

sIFR uses the same sort of technique but for typography only. It also rocks.
  Reply With Quote
Old 07-04-2007, 10:23   #6 (permalink)
longisland6
stephen eighmey
 
Join Date: Oct 2006
Location: earth
Posts: 152
i currently use the latest version of swfobject in a number of my sites and i agree, it works great. i love the support and the swfobject forum. i haven't yet tried to validate a site (xhtml transitional) with swfobject but i've heard it doesn't validate. any thoughts?
  Reply With Quote
Old 07-04-2007, 10:33   #7 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
It has to validate, it's just JavaScript. It should be ignored by the validator (if it's done properly), I would think...
  Reply With Quote
Old 08-04-2007, 08:34   #8 (permalink)
hawken
Cornish Pasty
 
hawken's Avatar
 
Join Date: Nov 2003
Location: Tokyo, Japan
Posts: 2,707
Send a message via MSN to hawken
conditional comments often help me get projects out the door a lot quicker.
__________________
  Reply With Quote
Old 17-04-2007, 14:47   #9 (permalink)
longisland6
stephen eighmey
 
Join Date: Oct 2006
Location: earth
Posts: 152
conditional comments just might be the trick. thank you.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8