PDA

View Full Version : Object Detection, a good idea?


Rod
20.03.2002, 03:01
http://developer.apple.com/internet/javascript/objectdetection.html

Is it a good idea? Personally I think it is, but the browser sniffer is very useful for those bug fixes in specific browsers.

What do you think?

[url="http://www.e-syed.net/viewsrc/"]. viewsrc . [/url:kwbdayoisy]

Brian Nickel
20.03.2002, 03:24
Feature sniffing has always been prefered to browser sniffing, I've always viewed it as "The object is always right." Browser sniffing has always weighed down code.

<font face='Courier New'><font color=brown>.Brian
It is best to remain silent and be thought a fool than to open your mouth and remove all doubt.</font id=brown></font id='Courier New'>

Garrett Smith
23.03.2002, 01:13
Placeholders functions are what programmers use when they want to implement a certain feature, but haven't been able to yet.

Opera has several placeholders. If you try to detect stuff in Opera, you'll find objects without implementations. Mozilla is the same. The createEvent method doesn't do anything.

Here's a little excerpt from a webreference article:

(scroll down to about 60%)
http://www.webreference.com/new/020314.html

The first part of the letter has some good info, too.



(still don't know why my site crashes IE6)

http://dhtmlkitchen.com/

Rod
23.03.2002, 04:32
how do you make and object detection for IE's .cssText in my appendobject function?

[url="http://www.e-syed.net/viewsrc/"]. viewsrc . [/url:jzlvdvt2el]