|
|
 |
Re: FN-FORUM: JavaScript help....
date posted 6th August 2003 22:43
i'm gonna stick my neck out asking this - i know this thread is talking
about something else but my question is related, do people really still
make scripts to work in different browsers?
when i started web design some years ago, it was the big thing to
always make sure your web page appeared correctly in a variety of
browsers on a plethora of systems... but it seems to me today, and
according to most web statistics, that people mostly use IE on a
windoze system - and to go to the trouble to program a website to work
on all these minor browsers just isn't worth the time?
i used to always check my site on IE, Netscape, Mozilla, Opera
whatever..... but now just make sure it looks great in IE on the Mac
and Windoze...
tell me if i'm wrong, i'm just mainly curious.........
*luke
On Wednesday, August 6, 2003, at 06:50 PM, Dom wrote:
>
> On Wednesday 06 Aug 2003 5:57 pm, Ross Hamilton wrote:
>
>>> // pseudo-code
>>> switch name
>>> case navigator
>>> if version >=4
>>> do stuff
>>> else if version >3
>>> do other stuff
>>> case Eskimo
>>
>> This prevents you from doing stuff like:
>>
>> if ie4 do stuff
>
> Nah, cos one of the things you can do in "do stuff" is
> "navVersion=IE4";
> and then use navVersion wherever you want.
>
>> If we stuck to your suggestion we'd have to do something like this
>> instead:
>>
>> if !navigator && version == 4 do stuff
>>
>> I know which I'd prefer. So what if you're declaring more variables
>> than
>> you strictly need? It's not as if your computer is going to have
>> trouble
>> keeping track of six variables instead of two!
>
> It's not the computer, it's the programmer.
>
>> You've also got a more extensible model - the one you suggested
>> breaks down
>> if you want to distinguish between three different browser types.
>
> Err, no.
>
> --
> Dom Latter.
|
 |
|