Click to See Complete Forum and Search --> : Browsers


rhsunderground
02-11-2004, 10:45 PM
what is returned for navigator.appName from the major browsers? I'm starting to write code for diff. browsers and it might be easier to have a seperate code for each one. or maybe not.

fredmv
02-11-2004, 11:24 PM
Why not use standardized JavaScript (ECMAScript)? By doing this, you should not need to check the navigator.appName string. To answer your question, that substandard HTML renderer from hell, IE, returns "Microsoft Internet Explorer"; Mozilla, Netscape, and perhaps other Gecko-based browser return "Mozilla".

Fang
02-12-2004, 01:15 AM
Object detection (http://www.quirksmode.org/js/support.html) would be better.

fredmv
02-12-2004, 01:29 AM
Originally posted by Fang
Object detection (http://www.quirksmode.org/js/support.html) would be better. Couldn't agree more; however, the examples on that page do not show the correct way to detect supported objects — all examples will throw strict errors in Mozilla. I'm actually rather surprised as that is an article from PPK's site which generally has good information.

Fang
02-12-2004, 02:07 AM
So much for reling on one of the better sites.
You could send him an email and point out his error.
Be tactful, he gets irritated quickly! :)

fredmv
02-12-2004, 02:23 AM
Originally posted by Fang
You could send him an email and point out his error.It's not too big of an error, but the fact of the matter here is that it will throw strict errors in Mozilla. This generally means, while the code may work, there are still some quirks in it in which could cause problems in the future.Originally posted by Fang
Be tactful, he gets irritated quickly!Really? You've contacted him before?

Fang
02-12-2004, 03:18 AM
Yes, a comment on his layout/menu.

fredmv
02-12-2004, 03:20 AM
Interesting; thanks for the heads up. ;)

rhsunderground
02-12-2004, 09:49 AM
that's interesting stuff. might have to give it a shot.

Apu
02-16-2004, 10:10 AM
i'm a newbie and see that you have the same problem i have ..getting a page to load both in ie and ns. i went to your site but you've hidden the code. if you could see your way in helping me with the coding ..it would be greatly appeciated. the page shows in ie but not netscape .. its the clock-dash code in the clocks page.
Apu

Fang
02-16-2004, 01:16 PM
The "clock-dash" code, that I saw, only works in IE.

Apu
02-16-2004, 02:17 PM
yup, i know ..what i'm wondering will it given some java work in n/s?
if you have any ideas i'm eager to learn.
Apu

rhsunderground
02-16-2004, 10:47 PM
i haven't disabled the view source (that's impossible), i've just played an evil prank. the code is attached.

Apu
02-19-2004, 09:15 AM
can't save file to disk and can't seem to open the php file. any clues??

rhsunderground
02-19-2004, 09:43 AM
i wish i knew php, but there is none. just go to this link (http://rhsunderground.netfirms.com/ourpage.html). don't close the window. don't bother looking at the fullscreen window. view the source in the normal window. play as you wish.