Results 1 to 2 of 2

Thread: Browser detect page switcher?

  1. #1
    Join Date
    May 2006
    Posts
    275

    Browser detect page switcher?

    I'm presently recoding an entire site from tables to CSS and I'm considering using a bit of Javascript to detect older browsers and redirect them to the old table-based site. Normally I wouldn't really fuss with this, but in this case my two bosses - the people paying me to make websites for them - are running dinosaur Macs with IE5, which completely chews up my CSS layouts. So, I thought I'd just silently redirect them to the table version.

    I've Googled a bit about Javascript browser detect, but what I want to ask the forum is which browsers & versions should I include in this? Which ones handle CSS horribly?

    Thanks.

  2. #2
    Join Date
    Jun 2004
    Posts
    173
    IE is probably your biggest concern. I might suggest IE conditional comments (http://msdn.microsoft.com/workshop/a...omment_ovw.asp) to catch older IE versions and feed them different CSS rules, or even redirect the page.

    Using a JavaScript redirect is dicey as it may not be active on a user's system. The browser normally reports its identity (though that may be spoofed) to the server, which is probably a better place to make such discriminations, but is probably still less reliable and elegant that conditional comments.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •