|
Posted by Anthony Levensalor on 01/09/08 15:59
Sherman Pendley said:
> Anthony Levensalor <killfile@mypetprogrammer.com> writes:
>
>> There really isn't all that much 'code-hacking'
>> required. Conscientious coding is much better than hacking and as far
>> as Javascript goes, it is not difficult at all to find the common
>> threads and use them appropriately so that code works in Safari,
>> Opera, IE, and FireFox.
>
> And even then, you won't need to constantly write that kind of code.
>
> There are plenty of free libraries that encapsulate all that browser-
> checking and other standard code into a simple function call. And if
> you don't like those, it's not hard to write your own.
>
> sherm--
>
Yeah, but browser checking sucks, and it's not a good move. There will
be more browsers than the ones we have now, and the ones we have now
will eventually go away. Why try to keep up?
Not only that, but there are a great deal more browsers than there are
scripts that include them all. Object/Function/Array/Collection
detection on an as-needed basis works the best, and you don't have to
have 80kb of Javascript code, 79kb of which you'lll never use, to do it.
It's a beautiful thing. :)
~A!
--
anthony at my pet programmer dot com
Navigation:
[Reply to this message]
|