Go Back   Themers Club : Computers , Mobiles and Web Development Themes > Webmaster forum > Website Design and Content

Website Design and Content Discussion pertaining to website design : Everything related to Databases , Graphics & Multimedia , Programming , HTML ,..

Reply
 
Thread Tools Display Modes
  #1  
Old 03-06-2009, 06:35 PM
gino gino is offline
Junior Member
 
Join Date: Mar 2009
Posts: 1
Rep Power: 0
gino is on a distinguished road
Default Browser Sniffing

Some websites deliver a different version of the web page to different browsers (or different versions of the same browser). This is usually done at either at the web server level through scripts (programs) that run on the server itself, or on the web page level, through JavaScripts inserted into the web page. The practice is known as "browser sniffing".

Even if you do not know what browser sniffing is, this section may still apply to you. If [Only Registered users can see links . Click Here To Register...] have inserted some sort of pop-up menu script that you obtained from a third-party website, your site may inadvertently contain browser-sniffing facilities. Some menu scripts incorporate browser sniffing to work around differences among the various browsers. Get an updated version of the third-party script that supports IE8 if your site uses such facilities. (Before you ask, don't worry if you're using the menu generated by the CSS Navigation Menu Bar Button Wizard. The menu generated is purely CSS based, and contains no browser sniffing.)

For those who have written their own scripts, you may need to update it to recognize IE 8. That is, you will need to add the IE8 user-agent string to your various tests.

If Compatibility View is enabled, IE uses the following string. Note that the "Windows NT 6.0" portion below is for Vista. The version number "6.0" will obviously be different if the visitor is using Windows XP ("5.1") or Windows 7 ("6.1").

In a nutshell, scan for "MSIE 8.0" if you need to identify IE running in standards view. If you just need to detect IE 8.0, whether it's running in standards mode or Compatibility View, search for the string "Trident/4.0".
Although IE8 is more standards-compliant than all its previous versions, its standards support is still not complete. For example, the "outset" and "inset" border styles mentioned in How to Create 3D Buttons Using CSS do not appear to be implemented in IE8 RC1. (Or at least, I can't seem to spot any difference in the borders using these styles and those using "solid" style.)

As a result, you probably should not just assume that the same style sheet that you use for Opera and Firefox will work identically for IE8. If your use of CSS is simple, or you don't mind a slightly degraded experience for your visitors in IE8, you can just ignore the differences (if any) and use one stylesheet for IE8 and the other browsers. Alternatively, if your styles are complicated, you may need to create yet another style sheet just for IE 8 that incorporate workarounds for the unsupported aspects of CSS 2, 2.1 and 3. Or use the lowest common denominator among the browsers.
Reply With Quote
  #2  
Old 09-19-2011, 11:32 AM
JoniMarcello JoniMarcello is offline
Junior Member
 
Join Date: Sep 2011
Posts: 4
Rep Power: 0
JoniMarcello is on a distinguished road
Default

Browser sniffing is the method of identifying the web browser a visitor is using sequential to serve version-specific pages, scripts, images, or other content.
Reply With Quote
  #3  
Old 12-30-2011, 12:52 PM
delois delois is offline
Junior Member
 
Join Date: Dec 2011
Posts: 26
Rep Power: 0
delois is on a distinguished road
Default

Browser sniffing means detecting the web browser that a visitor is using the website or web application and serve the images and scripts or any other content. Sometimes to support same web application in multiple browsers or for best performance of websites on all browsers, this technique gets used.

Last edited by delois; 09-13-2012 at 07:09 AM.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 06:51 PM.


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.