bootfit — 2011-09-11T09:01:41-04:00 — #1
I have a piece of script that runs great on all browsers other than Chrome and I want to exclude it from being seen/used on Chrome.
Whats the conditional <!--[if XXXX]> statement to wrap around it?
stevie_d — 2011-09-11T16:17:59-04:00 — #2
Is it actually causing problems for Chrome, or is it just not running? If it isn't doing anything bad, I would just leave it as it is...
system — 2011-09-11T11:48:05-04:00 — #3
Yeah, I've got to go with the crowd on this, instead of not sending it to chrome - FIX IT so it works.
But as a Opera user I'm sick of scriptards basically telling me to **** off, so the notion of saying to another major browser "no" doesn't float with me.
c_ankerstjerne — 2011-09-11T11:37:57-04:00 — #4
Only Internet Explorer read conditional comments. As Ralph wrote, why not fix the script to run in Chrome too?
ralphm — 2011-09-11T10:01:54-04:00 — #5
So far as I know, that code doesn't exist yet. You could sniff the browser with JS, but it would be better to find out why it's not working in Chrome and address that.
picnictutorials — 2011-09-12T13:04:47-04:00 — #6
There are PHP and js browser sniffers out there you just have to search a bit. But like others said I'd just fix it.