HI,
Can any one tell me how to findout Client is using IE or Mozilla o
Netscafe Opera. I need Javascript Code.
My site is not aligning properly in Mozilla and netscafe. So I decide
to findout client OS do seperat code for each.
reg
tec
--
tech_lear
Danny - 29 Jun 2005 05:03 GMT
I'll side with Roger, do get some Firefox extension, I STRONGLY recommend
Chris Pederick WebDevelopment extension, is EXCELLENT, for stripping the
page elements and do live CSS editing. And yes, the issue is not the
browser, so long you don't develop in quirk mode, give it a html4 strict
doctype, stick to standards, and should have no issues, and yes, those
happen usually due to poor html/css.
Danny
On Thu, 30 Jun 2005 03:13:08 -0700, tech_learn
<tech_learn.1rfudz@no-mx.forums.yourdomain.com.au>

Signature
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Richard Cornford - 30 Jun 2005 14:43 GMT
> Can any one tell me how to findout Client is using IE or
> Mozilla or Netscafe Opera.
Or Konqueror, Safari, IceBrowser, Omniweb, NetFront, Escape, etc, etc,
etc?
No, nobody can tell you how to find that out. A few might suggest
approaches form making wild guesses in the general direction, but such
guesses are often wrong and the consequences of being wrong are usually
worse than never bothering to make the guess.
> I need Javascript Code.
>
> My site is not aligning properly in Mozilla and netscafe.
Aligning? That sounds presentational, and so a CSS question rather than
javascript.
> So I decided
> to findout client OS do seperat code for each.
A bad plan. Double the work for a fraction of the return.
Richard.
The Magpie - 30 Jun 2005 17:01 GMT
> HI,
>
> Can any one tell me how to findout Client is using IE or Mozilla or
> Netscafe Opera. I need Javascript Code.
Or perhaps Safari (more popular than Netscape) or Konqueror (just a
little less popular) or any of the dozens of others. In a short phrase,
you can't. Browsers can - and many do (Opera especially) - lie about
what they are. Even if they don't, all you can really do is guess. Read
our FAQ about it.
> My site is not aligning properly in Mozilla and netscafe. So I decided
> to findout client OS do seperat code for each.
So stop trying to fiddle with it. Put on the content and use CSS to do
the presentation. Any problems with the content presentation will then
be the way the client browser NORMALLY sees such things and so -
presumably - how the client user is used to seeing them.
Roger - 30 Jun 2005 17:28 GMT
> HI,
>
[quoted text clipped - 3 lines]
> My site is not aligning properly in Mozilla and netscafe. So I decided
> to findout client OS do seperat code for each.
Per my personal experience in trying to get various browsers to display
a page the way I intended, I have found that the vast majority of
problems are due to my own incorrect HTML/CSS/Javascript code.
The best way to resolve these problems is to switch to Firefox and
download some of the development extensions. In particular, I find
HTML-Validator very useful. Finding bugs in CSS and Javascript is more
difficult, particulary if you are using Javascript to set CSS styles.
If you get your code correct (including a proper doctype), it will
probably work with every browser.
Roger